/* ===== Автошкола МАСТЕР — лендинг-помощник =====
   Палитра и сетка под макет первой страницы pishitenam.ru */
:root{
  --blue-900:#15347a;
  --blue-700:#1c4ec0;
  --blue-600:#2563eb;
  --teal:#1aa194;
  --teal-d:#0f8276;
  --orange:#f5811f;
  --orange-d:#e06d0c;
  --red:#e2231a;
  --ink:#1d2740;
  --muted:#5b6b86;
  --line:#e6ebf3;
  --card:#ffffff;
  --bg:#eef2f8;
  --radius:20px;
  --shadow:0 18px 40px -22px rgba(20,40,90,.35);
  --shadow-sm:0 8px 22px -14px rgba(20,40,90,.3);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}
html,body{overflow-x:hidden;max-width:100%}
.container{width:100%;max-width:1180px;margin-inline:auto;padding-inline:20px}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  background:linear-gradient(115deg,#143a8e 0%,#1c4ec0 55%,#2667e0 100%);
  color:#fff;
  padding:26px 0 54px;
  overflow:hidden;
  border-bottom-left-radius:34px;
  border-bottom-right-radius:34px;
}
.hero .skyline{
  position:absolute;left:0;right:0;bottom:0;width:100%;height:auto;
  opacity:.18;pointer-events:none;
}
.hero .container{position:relative;z-index:2}

.brandbar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:30px}
/* объёмная плашка с логотипом */
.logo-plate{
  display:inline-flex;align-items:center;
  background:linear-gradient(180deg,#ffffff 0%,#eef2f8 100%);
  padding:11px 20px;border-radius:15px;
  border:1px solid rgba(255,255,255,.65);
  box-shadow:
    0 14px 26px -10px rgba(6,18,52,.55),
    0 3px 6px -3px rgba(6,18,52,.35),
    inset 0 2px 0 rgba(255,255,255,.95),
    inset 0 -4px 10px -5px rgba(20,40,90,.18);
  transition:transform .18s ease, box-shadow .18s ease;
}
.logo-plate:hover{transform:translateY(-2px);
  box-shadow:0 20px 32px -10px rgba(6,18,52,.6),0 4px 8px -3px rgba(6,18,52,.4),inset 0 2px 0 rgba(255,255,255,.95);}
.logo-plate img{height:46px;width:auto;display:block;
  filter:drop-shadow(0 1px 1px rgba(20,40,90,.22));}
.brand-tag{
  border-left:2px solid rgba(255,255,255,.35);padding-left:16px;
  font-size:14px;color:#dbe6ff;max-width:240px;line-height:1.35;
}

.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:24px;align-items:center}
.hero-text h1{
  font-size:clamp(34px,5vw,56px);line-height:1.05;margin:0 0 18px;font-weight:800;
}
.hero-text h1 .accent{color:#9dc2ff}
.hero-text p{font-size:clamp(15px,1.6vw,18px);color:#d8e3fb;max-width:460px;margin:0}
.hero-img{justify-self:end}
.hero-img img{width:min(580px,100%);filter:drop-shadow(0 22px 26px rgba(0,0,0,.22))}

/* ---------- КАРТОЧКИ CTA ---------- */
.cards{margin-top:-34px;position:relative;z-index:3;padding-bottom:8px}
.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.card{
  background:var(--card);border-radius:var(--radius);padding:26px 24px 24px;
  box-shadow:var(--shadow);display:flex;flex-direction:column;
  border:1px solid var(--line);position:relative;
}
.card .head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px;min-height:78px}
.card .badge{
  width:56px;height:56px;border-radius:14px;flex:none;
  display:grid;place-items:center;color:#fff;font-size:22px;font-weight:800;
}
.card .ic{width:74px;height:74px;flex:none;object-fit:contain}
.card .ic svg{width:100%;height:100%}
.card h3{font-size:22px;margin:0 0 10px;font-weight:800;line-height:1.15}
.card p{color:var(--muted);font-size:15px;margin:0 0 22px;flex:1}
.btn{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:14px 20px;border-radius:12px;color:#fff;font-weight:700;font-size:15px;
  border:none;cursor:pointer;width:100%;transition:filter .15s,transform .15s;
}
.btn:hover{filter:brightness(1.07);transform:translateY(-1px)}
.btn svg{width:20px;height:20px;flex:none}

/* акценты по карточкам */
.c-blue   .badge{background:linear-gradient(135deg,#2563eb,#1742a8)}
.c-blue   .btn{background:linear-gradient(135deg,#2563eb,#1742a8)}
.c-blue   h3{color:#1742a8}
.c-teal   .badge{background:linear-gradient(135deg,#1aa194,#0f8276)}
.c-teal   .btn{background:linear-gradient(135deg,#1aa194,#0f8276)}
.c-teal   h3{color:#0f8276}
.c-orange .badge{background:linear-gradient(135deg,#f5811f,#e06d0c)}
.c-orange .btn{background:linear-gradient(135deg,#f5811f,#e06d0c)}
.c-orange h3{color:#e06d0c}
.c-blue{border-top:3px solid #2563eb}
.c-teal{border-top:3px solid #1aa194}
.c-orange{border-top:3px solid #f5811f}

/* ---------- ПОМОЩЬ (два блока) ---------- */
.help{padding:36px 0 56px}
.help-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:22px;align-items:stretch}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px 26px 24px;box-shadow:var(--shadow-sm)}
.panel-title{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:800;margin-bottom:22px}
.panel-title .dot{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;flex:none}
.dot-blue{background:#e7eefc;color:#2563eb}
.dot-phone{background:#e7f6f3;color:#0f8276}

/* шаги */
.steps{display:flex;align-items:flex-start;gap:6px;flex-wrap:wrap}
.step{flex:1;min-width:150px;display:flex;flex-direction:column;gap:10px}
.step .si{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;flex:none}
.si-1{background:#e7eefc;color:#2563eb}
.si-2{background:#e7f6f3;color:#0f8276}
.si-3{background:#fdeede;color:#e06d0c}
.step p{margin:0;font-size:14px;color:var(--muted)}
.arrow{align-self:center;color:#b8c4da;flex:none;padding:0 2px;margin-top:6px}
.arrow svg{width:22px;height:22px}

/* контакты */
.contact-panel{position:relative;overflow:hidden}
.contact-list{display:flex;flex-direction:column;gap:14px;max-width:62%}
.contact-sub{color:var(--muted);font-size:15px;margin:-8px 0 18px}
.cline{display:flex;align-items:center;gap:12px;font-size:16px}
.cline .ci{width:34px;height:34px;border-radius:9px;background:#eef3fb;color:#2563eb;display:grid;place-items:center;flex:none}
.cline .ci.ci-max{background:transparent;border-radius:8px;overflow:hidden}
.cline .ci.ci-max svg{width:34px;height:34px;display:block}
.cline.phone .val{font-weight:800;font-size:19px;color:var(--ink)}
.operator{position:absolute;right:14px;bottom:0;width:190px;pointer-events:none}

/* ---------- ФУТЕР-ПОЛОСА ---------- */
.footer-strip{
  background:#fff;border-top:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;gap:10px;
  padding:18px;color:#2563eb;font-weight:700;font-size:16px;text-align:center;
}
.footer-strip svg{width:22px;height:22px;flex:none}
.copyright{text-align:center;color:#9aa7bd;font-size:13px;padding:18px}

/* ---------- АДАПТИВ ---------- */
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;text-align:center}
  .hero-text p{margin-inline:auto}
  .hero-img{justify-self:center;margin-top:8px}
  .cards-grid{grid-template-columns:1fr}
  .help-grid{grid-template-columns:1fr}
  .cards{margin-top:-24px}
  .contact-list{max-width:100%}
  .operator{position:static;width:150px;margin:14px auto 0}
  .steps{flex-direction:column}
  .arrow{transform:rotate(90deg);align-self:flex-start;margin-left:14px}
  .brand-tag{max-width:none}
}
