/* ===== Tokens ===== */
:root{
  --black:#000000;
  --ink:#1a1a1a;
  --grey-70:#4a4a4a;
  --grey-45:#8a8a8a;
  --grey-20:#d4d4d4;
  --grey-08:#f0f0f0;
  --white:#ffffff;

  --display: 'Unbounded', sans-serif;
  --body: 'Inter', sans-serif;

  --max-w: 1180px;
  --edge: clamp(20px, 5vw, 64px);
  --radius: 2px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--white);
  color:var(--black);
  font-family:var(--body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
h1,h2,h3{font-family:var(--display);margin:0;line-height:1.08;}

.wrap{max-width:var(--max-w);margin:0 auto;padding:0 var(--edge);}

:focus-visible{outline:2px solid var(--black);outline-offset:3px;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important;transition-duration:0.001ms !important;}
}

/* ===== Header ===== */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--grey-20);
}
.site-header .wrap{
  display:flex;align-items:center;justify-content:space-between;
  min-height:92px;
  gap:12px;
  flex-wrap:nowrap;
}
.brand{display:flex;align-items:center;gap:12px;min-width:0;flex:1;}
.brand img{height:58px;width:auto;flex:none;}
.brand-name{
  font-family:var(--display);font-size:15px;font-weight:600;letter-spacing:.01em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.brand-name span{display:block;font-family:var(--body);font-weight:400;font-size:12px;color:var(--grey-70);}

.nav-links{display:flex;gap:32px;}
.nav-links a{font-size:14px;font-weight:500;position:relative;padding:4px 0;}
.nav-links a::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:1px;
  background:var(--black);transform:scaleX(0);transform-origin:left;
  transition:transform .25s ease;
}
.nav-links a:hover::after{transform:scaleX(1);}

.header-cta{display:flex;align-items:center;gap:14px;}
.header-phone{font-size:14px;font-weight:600;white-space:nowrap;}

.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 22px;
  font-family:var(--body);font-size:14px;font-weight:600;
  border:1px solid var(--black);border-radius:var(--radius);
  cursor:pointer;white-space:nowrap;
}
.btn-solid{background:var(--black);color:var(--white);}
.btn-solid:hover{background:var(--ink);}
.btn-outline{background:transparent;color:var(--black);}
.btn-outline:hover{background:var(--black);color:var(--white);}
.btn svg{width:16px;height:16px;flex:none;}

.burger{display:none;background:none;border:1px solid var(--black);width:44px;height:44px;border-radius:var(--radius);cursor:pointer;}
.burger span{display:block;width:18px;height:1px;background:var(--black);margin:4px auto;}

/* ===== Hero ===== */
.hero{
  border-bottom:1px solid var(--grey-20);
  padding:76px 0 0;
  overflow:hidden;
}
.hero .wrap{
  display:block;
  max-width:900px;
}
.hero-eyebrow{
  font-size:13px;color:var(--grey-70);
  margin:0 0 22px;
}
.hero h1{
  font-size:clamp(38px,5.4vw,68px);
  font-weight:600;
  max-width:12ch;
  letter-spacing:-0.01em;
}
.hero-lede{
  max-width:46ch;
  font-size:17px;
  color:var(--grey-70);
  margin:24px 0 34px;
}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:56px;}

.hero-art{
  position:relative;
  height:100%;
  min-height:340px;
  display:flex;align-items:flex-end;justify-content:center;
}
.hero-art svg{width:100%;height:auto;max-width:340px;}

.hero-stats{
  border-top:1px solid var(--grey-20);
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.hero-stats div{
  padding:22px var(--edge) 22px 0;
  border-left:1px solid var(--grey-20);
}
.hero-stats div:first-child{border-left:none;padding-left:0;}
.hero-stats .wrap &{}
.stat-num{font-family:var(--display);font-size:26px;font-weight:600;}
.stat-label{font-size:13px;color:var(--grey-70);margin-top:4px;}

/* need wrap around hero-stats */
.hero-stats-wrap{border-top:1px solid var(--grey-20);}
.hero-stats-wrap .wrap{padding:0 var(--edge);}
.hero-stats-wrap .hero-stats{grid-template-columns:repeat(4,1fr);}

/* ===== Section shared ===== */
section{padding:88px 0;}
.section-head{
  display:flex;justify-content:space-between;align-items:flex-end;gap:24px;
  margin-bottom:48px;
  border-bottom:1px solid var(--grey-20);
  padding-bottom:24px;
}
.section-head h2{font-size:clamp(28px,3.4vw,42px);font-weight:600;max-width:16ch;}
.section-num{font-family:var(--display);font-size:13px;color:var(--grey-45);}
.section-note{max-width:34ch;font-size:15px;color:var(--grey-70);text-align:right;}

/* ===== Pillars (Ремонт / Скупка / Трейд-ин) ===== */
.pillars{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--grey-20);
  border-left:1px solid var(--grey-20);
}
.pillar{
  border-right:1px solid var(--grey-20);
  border-bottom:1px solid var(--grey-20);
  padding:36px 32px;
}
.pillar-index{font-family:var(--display);font-size:13px;color:var(--grey-45);}
.pillar svg{width:34px;height:34px;margin:20px 0;}
.pillar h3{font-size:22px;font-weight:600;margin-bottom:10px;}
.pillar p{font-size:14.5px;color:var(--grey-70);margin:0 0 18px;}
.pillar-link{font-size:13.5px;font-weight:600;border-bottom:1px solid var(--black);padding-bottom:2px;}

/* ===== Device spec list ===== */
.devices{background:var(--black);color:var(--white);}
.devices .section-head{border-color:var(--grey-70);}
.devices .section-note{color:var(--grey-20);}
.device-list{border-top:1px solid var(--grey-70);}
.device-row{
  display:grid;
  grid-template-columns:56px 1fr auto;
  align-items:center;
  gap:20px;
  padding:22px 0;
  border-bottom:1px solid var(--grey-70);
}
.device-row svg{width:30px;height:30px;}
.device-name{font-family:var(--display);font-size:19px;font-weight:500;}
.device-desc{font-size:13.5px;color:var(--grey-20);margin-top:4px;}
.device-tag{
  font-size:12.5px;
  border:1px solid var(--grey-70);
  border-radius:20px;
  padding:6px 14px;
  white-space:nowrap;
  color:var(--grey-20);
}

/* ===== Process ===== */
.process-list{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  border-top:1px solid var(--grey-20);
}
.process-step{
  padding:28px 24px 0 0;
  position:relative;
}
.process-step:not(:last-child){border-right:1px solid var(--grey-20);}
.process-step{padding-left:0;}
.process-step .n{font-family:var(--display);font-size:13px;color:var(--grey-45);display:block;margin-bottom:14px;}
.process-step h3{font-size:17px;font-weight:600;margin-bottom:8px;}
.process-step p{font-size:14px;color:var(--grey-70);margin:0;}
.process-step + .process-step{padding-left:24px;}

/* ===== Contact ===== */
.contact{border-top:1px solid var(--grey-20);}
.contact .wrap{
  max-width:760px;
}
.contact-info h2{font-size:clamp(28px,3.4vw,42px);font-weight:600;margin-bottom:18px;max-width:14ch;}
.contact-info > p{color:var(--grey-70);max-width:48ch;margin-bottom:36px;}
.contact-channels{border-top:1px solid var(--grey-20);}
.channel{
  display:flex;align-items:center;gap:16px;
  padding:18px 0;
  border-bottom:1px solid var(--grey-20);
}
.channel svg{width:22px;height:22px;flex:none;}
.channel-label{font-size:12.5px;color:var(--grey-45);}
.channel-value{font-size:16px;font-weight:600;}

/* ===== Footer ===== */
footer{border-top:1px solid var(--grey-20);padding:40px 0;}
footer .wrap{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;
}
.foot-brand{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--grey-70);}
.foot-brand img{height:28px;}
.foot-socials{display:flex;gap:18px;}
.foot-socials a{font-size:13px;font-weight:600;border-bottom:1px solid transparent;}
.foot-socials a:hover{border-color:var(--black);}
.foot-copy{font-size:12.5px;color:var(--grey-45);}

/* ===== Sticky WhatsApp ===== */
.sticky-wa{
  position:fixed;right:24px;bottom:24px;z-index:60;
  width:56px;height:56px;border-radius:50%;
  background:var(--black);color:var(--white);
  display:flex;align-items:center;justify-content:center;
  border:1px solid var(--black);
  box-shadow:0 6px 18px rgba(0,0,0,.25);
}
.sticky-wa svg{width:26px;height:26px;}

/* ===== Toast ===== */
.toast{
  position:fixed;left:50%;bottom:30px;transform:translate(-50%,20px);
  background:var(--black);color:var(--white);
  padding:14px 22px;font-size:14px;border-radius:var(--radius);
  opacity:0;pointer-events:none;transition:opacity .25s ease, transform .25s ease;
  z-index:70;
}
.toast.show{opacity:1;transform:translate(-50%,0);}

/* ===== Responsive ===== */
@media (max-width:900px){
  .nav-links{display:none;}
  .burger{display:block;}
  .hero .wrap{grid-template-columns:1fr;}
  .hero-art{min-height:220px;order:-1;}
  .hero-stats{grid-template-columns:repeat(2,1fr);}
  .hero-stats div:nth-child(3){border-left:none;padding-left:0;}
  .pillars{grid-template-columns:1fr;}
  .process-list{grid-template-columns:1fr 1fr;}
  .process-step + .process-step{padding-left:0;border-right:none !important;}
  .process-step{border-bottom:1px solid var(--grey-20);padding-bottom:24px;margin-bottom:24px;}
  .contact .wrap{grid-template-columns:1fr;gap:40px;}
  .device-row{grid-template-columns:44px 1fr;}
  .device-tag{grid-column:1 / -1;justify-self:start;margin-top:6px;}
}
@media (max-width:520px){
  .process-list{grid-template-columns:1fr;}
}
@media (max-width:640px){
  .brand-name{display:none;}
  .site-header .wrap{min-height:64px;}
  .brand img{height:38px;}
  .header-cta{gap:8px;}
  .header-cta .btn{padding:9px 12px;font-size:12.5px;gap:6px;}
}
