:root{
  --bg2:#f4f6f8;
  --card:#ffffff;
  --text:#333333;
  --muted:#6b7280;
  --line:#e7e7e7;
  --accent:#111827;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 16px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#333333;
  background:#ffffff;
}

/* layout */
.container{
  max-width:1120px;
  margin:0 auto;
  padding:0 18px;
}

.section{
  padding:72px 0;
}

.section--soft{
  background:#f4f6f8;
}

.section__head{
  margin-bottom:18px;
}

.section__head h2{
  margin:0 0 8px;
  font-size:28px;
  letter-spacing:-0.02em;
}

.muted{color:#6b7280}

/* ================= HERO ================= */

.hero{
  background:#f0f2f6;
  color:#333333;
  padding:84px 0 70px;
}

.hero__grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:26px;
}

.hero h1{
  margin:10px 0;
  font-size:44px;
  line-height:1.05;
  letter-spacing:-0.03em;
  color:#111827;
}

.hero .lead{
  margin:0;
  color:#3b3b3b;
  font-size:16px;
  line-height:1.55;
  max-width:560px;
}

.hero .badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border:1px solid #d7dde6;
  border-radius:999px;
  font-size:13px;
  color:#333333;
  background:#ffffff;
}

.hero__buttons{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.hero__meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  margin-top:18px;
  font-size:13px;
  color:#3b3b3b;
}

.meta__item{
  display:flex;
  align-items:center;
  gap:8px;
}

.hero__media{
  display:flex;
  justify-content:center;
  align-items:center;
}

.hero__media img{
  width:100%;
  max-width:520px;
  height:auto;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.0);
}

/* ================= GRID ================= */

.section__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:34px;
  align-items:center;
}

.section__grid--reverse{
  direction:rtl;
}
.section__grid--reverse > *{
  direction:ltr;
}

.section__media img{
  width:100%;
  border-radius:16px;
  box-shadow:var(--shadow);
  border:1px solid rgba(0,0,0,.06);
}

.section__text h2{
  margin:0 0 10px;
  font-size:28px;
  letter-spacing:-0.02em;
}

.section__text p{
  margin:0;
  line-height:1.6;
  color:#3b3b3b;
}

.buttons{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:16px;
}

/* ================= BUTTONS ================= */

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
  border:1px solid transparent;
  cursor:pointer;
  transition:.15s ease;
}

.btn--primary{
  background:#111827;
  color:#ffffff;
  border:1px solid #111827;
}

.btn--primary:hover{
  opacity:.92;
}

.btn--outline{
  background:#ffffff;
  border:1px solid #cfd5dd;
  color:#111827;
}

.btn--outline:hover{
  background:#f8fafc;
}

.btn--ghost{
  background:#ffffff;
  border:1px solid #e2e6ee;
  color:#111827;
}

/* ================= CALCULATOR ================= */

.calc{
  margin-top:18px;
}

.calc__grid{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:18px;
  align-items:start;
}

.card{
  background:#ffffff;
  border:1px solid #e7e7e7;
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:16px;
}

.card h3{
  margin:0 0 10px;
  font-size:16px;
  color:#111;
}

.field{margin-top:12px}

label{
  display:block;
  margin-bottom:6px;
  font-size:13px;
  font-weight:600;
  color:#333333;
}

input,select{
  width:100%;
  padding:12px;
  border:1px solid #dfe3e8;
  border-radius:12px;
  font-size:14px;
  color:#333333;
  background:#ffffff;
}

input[readonly]{
  background:#f6f7f9;
}

.hint{
  margin-top:6px;
  font-size:12px;
  color:#6b7280;
}

.row{
  display:flex;
  justify-content:space-between;
  padding:8px 0;
  border-bottom:1px dashed #e8eaee;
}

.row:last-child{border-bottom:none}

.row--total{
  font-size:16px;
  font-weight:700;
}

/* ================= FOOTER ================= */

.footer{
  padding:22px 0 40px;
}

.footer__inner{
  display:flex;
  justify-content:space-between;
  border-top:1px solid #eceff3;
  padding-top:16px;
  font-size:13px;
  color:#6b7280;
}

/* ================= RESPONSIVE ================= */

@media (max-width:960px){
  .hero__grid,
  .section__grid,
  .calc__grid{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:36px;
  }

  .hero{
    padding:70px 0 56px;
  }
}

/* секция "Где искать авто" */
.sites{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.sites__col{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.sites__title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 800;
  color:#111;
  margin-bottom: 10px;
}

.flag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 24px;
  border-radius: 8px;
  background:#f0f2f6;
  border:1px solid #e2e6ee;
  font-size: 12px;
  font-weight: 800;
  color:#111;
}

.site{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid #eef1f5;
  text-decoration:none;
  color:#333;
  margin-top: 10px;
  transition: transform .12s ease, background .12s ease;
  background:#fff;
}

.site:hover{
  background:#f9fafb;
  transform: translateY(-1px);
}

.site__left{
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.site__name{
  font-weight: 800;
  color:#111;
}

.site__hint{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.site__right{
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 2px;
}

.sites__cta{
  margin-top: 16px;
  display:flex;
  justify-content:flex-start;
}

/* responsive */
@media (max-width: 960px){
  .sites{ grid-template-columns: 1fr; }
}

/* =========================
   SECTION: Проверка (фон 234.png)
   Высота секции = 851px
   ========================= */

.section--check{
  position: relative;
  height: 851px;           /* <- секция ровно под высоту изображения */
  padding: 0;              /* важно: чтобы высота была именно 851 */
  overflow: hidden;
  display: flex;
  align-items: center;     /* вертикально центрируем контент */
  background: #f0f2f6;
}

/* фоновое изображение */
.section--check::before{
  content:"";
  position:absolute;
  inset:0; /* растянуть на всю секцию */
  background: url("../assets/img/about.png") center right / cover no-repeat;
  opacity: 0.7;           /* нормальная читаемость текста */
  z-index:0;
}

/* контент поверх фона */
.section--check .container{
  position: relative;
  z-index: 1;
  width: 100%;
}

/* на мобилке фиксированная высота 851 часто слишком большая */
@media (max-width: 960px){
  .section--check{
    height: auto;
    min-height: 520px;
    padding: 72px 0;       /* возвращаем нормальные отступы на мобиле */
  }
}

/* =========================
   SECTION: Ваш эксперт
   ========================= */

.section__media--expert img{
  box-shadow: none;      /* убрать тень */
  border: none;          /* убрать рамку */
  border-radius: 0;      /* убрать скругления */
  filter: none;          /* убрать любые эффекты */
  max-width: 100%;
  height: auto;
}

/* =========================
   SECTION: Ваш эксперт
   Картинка 300px
   ========================= */

.section__media--expert{
  display: flex;
  align-items: center;
  justify-content: center;
}

.section__media--expert img{
  width: 300px;       /* фиксированный размер */
  height: auto;
  box-shadow: none;
  border: none;
  border-radius: 0;
  filter: none;
}

@media (max-width: 960px){

  .section--check::before{
    background-position: 10% center; 
    /* регулируй число:
       0% = максимально влево
       20% = немного влево
       30–40% = мягкое смещение
    */
  }

}

/* =========================
   HEADER
   ========================= */

.header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #f0f2f6;
  z-index: 1000;
}

.header__inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* logo */
.header__logo img{
  height: 40px;
}

/* center home */
.header__home{
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

/* burger */
.burger{
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger span{
  height: 3px;
  background: #000;
  border-radius: 2px;
}

/* mobile menu */
.mobile-menu{
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100vh;
  background: #111827;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: right .3s ease;
}

.mobile-menu a{
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.mobile-menu.active{
  right: 0;
}

/* чтобы контент не прятался под fixed header */
body{
  padding-top: 64px;
}