/* ===== База ===== */
:root {
  --ink: #252b31;
  --muted: #616a73;
  --paper: #edf0f2;
  --yellow: #efc72f;
  --yellow2: #ffe866;
  --line: #d5dade;
  --card: #fff;
  --dark: #343b42;
  --green: #477d67;
}

* { 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;
}

/* ===== Верхняя полоса ===== */
.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"],
.footer a:hover {
  color: #ffe05b !important;
}

/* ===== Кнопки ===== */
.btn, .head-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(115deg, #fff17a 0%, #f6d93b 48%, #eabf22 100%) !important;
  color: #262a2e !important;
  border: 1px solid rgba(143, 112, 17, .27) !important;
  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;
  cursor: pointer;
}

.btn:hover, .head-cta:hover {
  background: linear-gradient(115deg, #fff8a8, #ffe866) !important;
  transform: translateY(-1px);
  box-shadow: rgba(25, 33, 40, .16) 0 5px 13px;
}

.btn.dark {
  background: linear-gradient(115deg, #454d55, #353d45) !important;
  color: #f6f7f8 !important;
  border-color: #66717a !important;
}

/* ===== Верхний блок страницы ===== */
.page-hero {
  padding: 48px 0;
  background: linear-gradient(105deg, var(--paper) 0%, var(--paper) 58%, #e1e5e8 58%);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a { color: #8a6813; }

.eyebrow {
  text-transform: uppercase;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .17em;
}

.page-hero .eyebrow { color: #69757e !important; }

.page-hero h1 {
  max-width: 880px;
  font-family: "Space Grotesk", Manrope, Arial, sans-serif;
  font-size: clamp(40px, 5.1vw, 68px);
  line-height: .98;
  letter-spacing: -.06em;
  text-transform: uppercase;
  margin: 16px 0;
  background: linear-gradient(100deg, #343d45 0%, #66727c 48%, #3a444d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #354049 !important;
  filter: none !important;
  text-shadow: none !important;
}

/* ===== Секции ===== */
.section { padding: 68px 0; }

.section h2 {
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(29px, 3.8vw, 45px);
  line-height: 1;
  letter-spacing: -.05em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.intro {
  color: var(--muted);
  max-width: 780px;
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ===== Сетка карточек ===== */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 27px;
}

.card {
  background: var(--card);
  border: 1px solid #d2d8dc;
  padding: 23px;
  position: relative;
  min-height: 195px;
  color: #273038;
  box-shadow: rgba(25, 33, 40, .09) 0 12px 30px;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 100%;
  background: var(--yellow);
  transform: scaleX(.18);
  transform-origin: left center;
  transition: .2s;
}

.card:hover::before { transform: scaleX(1); }

.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: #886613;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 17px;
}

/* ===== Цена в карточке ===== */
.to-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #e1e5e8;
  color: #303840;
  font-weight: 800;
}

.to-price strong {
  color: #795b13;
  font-size: 20px;
  white-space: nowrap;
}

.to-price small {
  font-size: 12px;
  color: #58616a;
  font-weight: 600;
}

/* ===== Блок бесплатного осмотра ===== */
.to-free-inspection {
  margin-top: 24px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(239, 199, 47, .46);
  border-radius: 16px;
  background: linear-gradient(115deg, #fff9d8 0%, #fff 46%, #edf1f3 100%);
  box-shadow: rgba(25, 33, 40, .07) 0 12px 30px;
  color: #303840;
}

.to-free-inspection h3 {
  margin: 0 0 9px;
  color: #303840;
  font-size: clamp(19px, 2vw, 24px);
}

.to-free-inspection p {
  margin: 0;
  color: #4d5861;
  line-height: 1.75;
}

.to-free-inspection strong { color: #765809; }

/* ===== Блок «Индивидуальный подход» ===== */
.section.to-individual {
  background: linear-gradient(115deg, #e9edf0 0%, #f7f8f8 48%, #e4e8eb 100%) !important;
  color: #29343d !important;
  border-top: 1px solid #d8dde1;
  border-bottom: 1px solid #d8dde1;
}

.to-individual .eyebrow {
  letter-spacing: .14em;
  color: #65717b !important;
  opacity: 1 !important;
}

.to-individual h2 {
  background: linear-gradient(100deg, #27333d 0%, #59676e 52%, #303b44 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #27333d !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}

.to-individual .intro,
.to-individual p {
  color: #343d45 !important;
  opacity: 1 !important;
  font-size: 17px !important;
  line-height: 1.8 !important;
  text-shadow: none !important;
}

.to-individual .card {
  background: linear-gradient(145deg, #fff 0%, #f7f8f8 100%) !important;
  color: #303840 !important;
  border: 1px solid #d3d9dd !important;
  box-shadow: rgba(31, 42, 51, .1) 0 14px 32px !important;
}

.to-individual .card h3 {
  background: linear-gradient(100deg, #303840, #68737c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #303840 !important;
}

.to-individual .card p {
  color: #343d45 !important;
  opacity: 1 !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
}

.to-individual .num { color: #775d1f !important; }
.to-individual .split { align-items: stretch; }

/* ===== FAQ ===== */
.faq { max-width: 850px; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq summary {
  font-weight: 800;
  cursor: pointer;
}

.faq p,
.faq details p {
  color: #4b555e !important;
  line-height: 1.75;
}

/* ===== CTA-полоса ===== */
.cta-band {
  background: linear-gradient(118deg, #444c54 0%, #555e67 55%, #424b53 100%) !important;
  color: #f6f7f8 !important;
  border-color: #737d86 !important;
  border-left: 6px solid var(--yellow);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 26px;
}

.cta-band h2,
.cta-band p {
  color: #f5f6f7 !important;
}

.cta-band p { margin: 7px 0; }

/* ===== Подвал ===== */
.footer {
  background: linear-gradient(112deg, #30373e 0%, #424a52 48%, #343c43 100%) !important;
  color: #f7f8f8 !important;
  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;
}

.footer img[src*="autokrab-logo.png"],
.footer-logo[src*="autokrab-logo.png"] {
  display: block !important;
  width: clamp(118px, 13vw, 158px) !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #08090a !important;
  border: 1px solid rgba(226, 180, 66, .3) !important;
  border-radius: 4px !important;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #ccd;
}

.footer small { color: #ccd; }

/* ===== Адаптив ===== */
@media (max-width: 950px) {
  .nav { gap: 10px; font-size: 10px; }
}

@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; }

  .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 !important;
  }

  .to-individual .intro,
  .to-individual p {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }

  .card {
    box-shadow: rgba(31, 37, 43, .067) 0 7px 20px !important;
  }
}

@media (max-width: 650px) {
  .to-price {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .to-price strong { font-size: 19px; }
}