/* mobile-fix-v2 */
:root{
  --bg:#ffffff;
  --text:#111114;
  --muted:#6b6b75;
  --line:#ececf1;
  --border: var(--line);
  --card:#ffffff;
  --accent:#FFB900;
  --accent2:#E8A800;
  --orange:#FF7A00;
  --glow:var(--glow);
  --glowSoft:var(--glowSoft);
  --glowDash:var(--glowDash);
  --shadow:0 10px 30px rgba(16,16,24,.08);
  --radius:18px;
  --max:1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}
.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.78);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.logo{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:.04em;
}
.logo-badge{
  width:34px; height:34px; border-radius:12px;
  background: radial-gradient(120% 120% at 0% 0%, var(--accent2), var(--accent));
  box-shadow:0 10px 24px rgba(255,122,0,.25);
}
.logo small{display:block; font-weight:600; letter-spacing:0; color:var(--muted); margin-top:2px}

.logo--svg{gap:0}
.logo--svg .logo-badge{display:none}
.logo-img{
  display:block;
  height:32px;
  width:auto;
  max-width:320px;
}
@media (max-width: 720px){
  .logo-img{height:24px; max-width:240px}
}
.menu{
  display:flex; align-items:center; gap:16px;
  font-weight:650;
  color:#1a1a22;
}
.menu a{opacity:.85}
.menu a:hover{opacity:1}
/* Header icon buttons */
.header-actions{display:flex; gap:10px; align-items:center}
.iconbtn{
  width:40px; height:40px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  transition:.18s transform, .18s box-shadow, .18s border-color;
}
.iconbtn:hover{transform:translateY(-1px); box-shadow:var(--shadow); border-color:#e0e0ea}
.header-actions .btn.header-cta{
  height:40px;
  padding:0 14px;
  border-radius:12px;
}
.header-actions .btn.small.header-cta{padding:0 14px}


/* Focus (avoid browser purple highlight; use brand orange glow) */
a:focus, a:focus-visible,
button:focus, button:focus-visible,
.btn:focus, .btn:focus-visible,
.iconbtn:focus, .iconbtn:focus-visible{
  outline:none !important;
}
.btn:focus-visible, .iconbtn:focus-visible, a.btn:focus-visible{
  box-shadow:0 0 0 4px var(--glowSoft), var(--shadow) !important;
  border-color:var(--glowDash) !important;
}
/* Contact social row */
.social-row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:none;
  font-weight:700;
  cursor:pointer;
  transition:.18s transform, .18s box-shadow, .18s border-color;
}
.btn:hover{transform:translateY(-1px); box-shadow:var(--shadow); border-color:#e0e0ea}
.btn.primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  color:#111114;
}
.btn.primary:hover{box-shadow:0 18px 50px var(--glow); 
}
.btn.small{padding:10px 12px; border-radius:12px; font-weight:700}

/* Wider "Рассчитать проект" buttons */
.btn[data-open-quote], .btn[data-open-tire-quote]{padding-left:22px; padding-right:22px;}
.btn.small[data-open-quote], .btn.small[data-open-tire-quote]{padding-left:16px; padding-right:16px;}

/* Add subtle white inner outline on “Рассчитать” buttons (requested “white stripes”) */
.btn.primary[data-open-quote],
.btn.primary[data-open-tire-quote]{
  outline:2px solid rgba(255,255,255,.92);
  outline-offset:-2px;
}

.hero{
  padding:54px 0 22px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
  align-items:stretch;
}
.h-title{
  font-size:44px;
  line-height:1.06;
  margin:0 0 14px;
  letter-spacing:-.02em;
}
.h-sub{
  font-size:16.5px;
  color:var(--muted);
  margin:0 0 18px;
  max-width:58ch;
}
.pills{display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 22px}
.pill{
  border:1px solid var(--line);
  padding:10px 12px;
  border-radius:999px;
  color:#20202a;
  background:#fff;
  font-weight:650;
  font-size:13px;
}
.pill strong{color:var(--accent)}
.hero-actions{display:flex; flex-wrap:wrap; gap:12px; margin:8px 0 18px}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.hero-card{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.preview{
  border-radius:16px;
  border:1px solid var(--line);
  overflow:hidden;
  height:320px;
  background:
    radial-gradient(60% 60% at 30% 20%, rgba(255,122,0,.22), transparent 60%),
    radial-gradient(60% 60% at 80% 30%, rgba(255,185,0,.18), transparent 60%),
    radial-gradient(55% 55% at 40% 90%, rgba(10,10,20,.06), transparent 60%),
    linear-gradient(180deg, #fff, #fafafb);
  position:relative;
}
.preview::after{
  content:"";
  position:absolute; inset:18px;
  border-radius:14px;
  border:1px dashed var(--glowDash);
}

/* Hero video preview */
.preview--video{
  background:#000;
}
.preview--video::after{
  display:none;
}
.preview--video .hero-video{
  width:100%;
  height:100%;
  object-fit:cover;
  /* Frame slightly lower: keep the wheel visible but avoid cutting the top */
  object-position:50% 35%;
  display:block;
}
.kpi{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.kpi-item{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background:#fff;
}
.kpi-item b{display:block; font-size:16px}
.kpi-item span{display:block; color:var(--muted); font-size:12.5px; margin-top:2px}
.section{padding:30px 0}
.section h2{margin:0 0 12px; font-size:26px; letter-spacing:-.01em}
.section p.lead{margin:0 0 16px; color:var(--muted); max-width:76ch}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.grid-4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.feature{
  padding:16px;
}
.feature h3{margin:0 0 6px; font-size:16px}
.feature p{margin:0; color:var(--muted); font-size:14px}
.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.gallery.gallery--3{
  grid-template-columns: repeat(3, 1fr);
}
.gallery.big{
  grid-template-columns: repeat(2, 1fr);
}
.gallery.big .tile .img{height:320px}

/* Align "Наши работы" tiles (text + button) */
.gallery .tile{display:flex; flex-direction:column; height:100%;}
.gallery .tile .meta{display:flex; flex-direction:column; gap:10px; flex:1;}
.gallery .tile .meta b{display:block; min-height:44px; line-height:1.25;}
.gallery .tile .meta .btn.link{margin-top:auto; align-self:flex-start;}

/* Popular photos (home) */
.popular-photos .pop-tile img{
  width:100%;
  height:320px;
  object-fit:cover;
  display:block;
}
.popular-photos .pop-tile img.shift-up{
  object-position: 50% 70%;
}

/* Per-tile adjustment: Popular design #3 */
.popular-photos .pop-tile img.shift-down{
  object-position: 50% 90%;
}

/* Per-tile adjustment: Popular design #5 */
.popular-photos .pop-tile img.shift-down-90{
  object-position: 50% 90%;
}

/* Per-tile adjustment: Popular design #6 (down ~30%) */
.popular-photos .pop-tile img.shift-down-30{
  object-position: 50% 80%;
}

/* Per-tile adjustment: Popular design #8 (up ~20%) */
.popular-photos .pop-tile img.shift-up-20{
  object-position: 50% 30%;
}

/* (kept for compatibility) */
.popular-photos .pop-tile img.shift-down-80{
  object-position: 50% 80%;
}

.tile{
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background: #fff;
  box-shadow:0 10px 26px rgba(16,16,24,.06);
}
.tile .img{
  height:220px;
  background:
    radial-gradient(90% 80% at 15% 15%, rgba(255,122,0,.22), transparent 60%),
    radial-gradient(80% 80% at 80% 35%, rgba(255,185,0,.16), transparent 60%),
    linear-gradient(180deg, #fff, #f7f7fb);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.tile .meta{padding:12px 12px 14px}
.tile .meta b{display:flex; align-items:center; justify-content:space-between; gap:10px}
.tagrow{display:flex; flex-wrap:wrap; gap:8px; margin-top:8px}

/* Наши работы: теги в одну строку (без переноса) */
.ourworks .tagrow{flex-wrap:nowrap; white-space:nowrap; gap:6px}
.ourworks .tag{padding:4px 8px; font-size:12px; line-height:1.15}

@media (max-width:420px){
  .ourworks .tagrow{gap:4px}
  .ourworks .tag{padding:3px 6px; font-size:11px}
}
@media (max-width: 480px){
  .ourworks .tag{padding:3px 6px; font-size:11px}
}

.tag{
  font-size:12px;
  color:#1f1f28;
  border:1px solid var(--line);
  padding:6px 9px;
  border-radius:999px;
  background:#fff;
}
.steps{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}

/* Production + QC section cards (placeholders for photos + description) */
.prod-card{
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.prod-img{
  height:320px;
  border-radius:16px;
  border:1px solid var(--line);
  overflow:hidden;
  background:
    radial-gradient(90% 80% at 15% 15%, rgba(255,122,0,.22), transparent 60%),
    radial-gradient(80% 80% at 80% 35%, rgba(255,185,0,.16), transparent 60%),
    linear-gradient(180deg, #fff, #f7f7fb);
  position:relative;
}
.prod-img.has-photo{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.prod-img.has-photo::after{ display:none; }

/* Production/QC photos */
.prod-img.photo-12{ background-image:url('../img/12.jpg'); }
.prod-img.photo-13{ background-image:url('../img/13.jpg'); }
.prod-img.photo-15{ background-image:url('../img/15.jpg'); }
.prod-img.photo-14{ background-image:url('../img/14.jpg'); }
.prod-img.photo-20{ background-image:url('../img/20.jpg'); }
.prod-img.photo-17{ background-image:url('../img/17.jpg'); }
.prod-img::after{
  content:"";
  position:absolute; inset:16px;
  border-radius:14px;
  border:1px dashed var(--glowDash);
}
.prod-card h3{
  margin:0;
  font-size:18px;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.prod-card p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.55;
}

.qc-title{margin:24px 0 12px; font-size:22px; letter-spacing:-.01em; text-transform:uppercase}
.prod-extra{margin-top:14px}
.step{
  padding:16px;
}
.step .n{
  width:34px; height:34px; border-radius:12px;
  background:linear-gradient(135deg, rgba(255,122,0,.18), rgba(255,185,0,.12));
  border:1px solid rgba(255,122,0,.25);
  display:flex; align-items:center; justify-content:center;
  font-weight:800; color:var(--orange);
  margin-bottom:10px;
}
.step h3{margin:0 0 6px; font-size:16px}
.step p{margin:0; color:var(--muted); font-size:14px}
.footer{
  border-top:1px solid var(--line);
  padding:26px 0 36px;
  color:var(--muted);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap:14px;
}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--text)}
.subnav{
  display:flex; flex-direction:column; gap:8px;
}
.footer-privacy{margin-top:10px; font-size:14px; color:var(--muted);}
.footer-privacy a{color:var(--muted); text-decoration:underline; text-underline-offset:3px;}
.footer-privacy a:hover{color:var(--text);}
.with-ico{display:inline-flex; align-items:center; gap:8px;}
.sico{display:inline-flex; width:16px; height:16px; color:var(--muted);}
.sico svg{width:16px; height:16px; display:block;}
.btn .sico{color:currentColor; opacity:.85;}

.footer a.with-ico:hover .sico{color:var(--text);}
.pagehead{
  padding:34px 0 10px;
}
.pagehead h1{margin:0 0 10px; font-size:34px; letter-spacing:-.02em}
.pagehead p{margin:0; color:var(--muted); max-width:80ch}
.filters{
  display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 18px;
}
.filter{
  padding:10px 12px; border-radius:999px;
  border:1px solid var(--line); background:#fff;
  font-weight:650; color:#23232d;
  cursor:pointer;
}
.filter.active{
  border-color:var(--glowDash);
  box-shadow:0 10px 24px var(--glowSoft);
}
.grid-catalog{
  display:grid;
  /* Larger catalog cards: fewer columns on desktop */
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
}
/* Catalog tiles are intentionally bigger than preview tiles on other pages */
.grid-catalog .tile .img{
  height:320px;
}
/* Align action buttons on wheel catalog tiles (like tire cards) */
.grid-catalog .tile{
  display:flex;
  flex-direction:column;
}
.grid-catalog .tile .meta{flex:1; display:flex; flex-direction:column; padding:12px 12px 14px}
.grid-catalog .tile-actions{
  padding:0 12px 14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}
.grid-catalog .tile .meta .tile-actions{margin-top:auto; padding:0}
.grid-catalog .tile-actions .btn{
  flex:1;
  min-width:140px;
  justify-content:center;
}
.tile .meta .link{
  display:inline-flex; margin-top:10px;
}
.project{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:start;
}
.bigimg{
  height:420px;
  border:1px solid var(--line);
  border-radius:18px;
  background:
    radial-gradient(70% 70% at 20% 20%, rgba(255,122,0,.20), transparent 60%),
    radial-gradient(70% 70% at 80% 35%, rgba(255,185,0,.14), transparent 60%),
    linear-gradient(180deg, #fff, #f7f7fb);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.box{padding:16px}
.list{margin:10px 0 0; padding-left:18px; color:var(--muted)}
.list li{margin:6px 0}
.notice{
  border:1px solid rgba(255,122,0,.25);
  background:linear-gradient(180deg, rgba(255,122,0,.06), rgba(255,185,0,.04));
  border-radius:18px;
  padding:14px 14px;
  color:#2a2a36;
}
.notice b{color:var(--accent)}
.hr{height:1px; background:var(--line); margin:18px 0}
.accordion{display:flex; flex-direction:column; gap:10px}
.qa{
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
}
.qa button{
  width:100%;
  text-align:left;
  background:#fff;
  border:0;
  padding:14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:750;
  cursor:pointer;
}
.qa .a{
  padding:0 14px 14px;
  color:var(--muted);
  display:none;
}
.qa.open .a{display:block}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:700;
}
.badge i{
  width:10px; height:10px; border-radius:99px;
  background:var(--accent);
  box-shadow:0 0 0 6px var(--glowSoft);
}
.modal{
  position:fixed; inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(10,10,16,.45);
  z-index:100;
}
.modal.open{display:flex}
.modal .panel{
  width:min(780px, 100%);
  background:#fff;
  border-radius:22px;
  border:1px solid var(--line);
  box-shadow:0 20px 70px rgba(0,0,0,.25);
  overflow:hidden;

max-height:86vh;}
.modal .head{
  padding:12px 12px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  border-bottom:1px solid var(--line);
}
.modal .head b{font-size:15px}
.modal .body{
  padding:12px;
  overflow:auto;
  max-height: calc(86vh - 56px);
}
.form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.field{display:flex; flex-direction:column; gap:6px}
.field label{font-size:12px; color:var(--muted); font-weight:650}
.field input, .field textarea, .field select{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 12px;
  font:inherit;
  outline:none;
}
.field input:focus, .field textarea:focus, .field select:focus{
  border-color:var(--glowDash);
  box-shadow:0 0 0 4px var(--glowSoft);
}
.field textarea{min-height:110px; resize:vertical}
.form .full{grid-column:1/-1}
.form-actions{display:flex; gap:10px; justify-content:flex-end; margin-top:12px}

#quoteModal .form-actions{justify-content:flex-end;}
#quoteModal input[type="file"]{width:100%;}


.mobilebar{
  display:none;
}
.burger{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  border-radius: 999px;
  padding:10px 16px;
  font-weight:800;
  cursor:pointer;

  height:40px;
}
.burger:hover{border-color:var(--glowDash); box-shadow:0 10px 24px var(--glowSoft); transform:translateY(-1px)}
.burger:active{transform:translateY(0)}
.menudrawer{
  display:none;
  border-top:1px solid var(--line);
}
.menudrawer a{
  display:block;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  opacity:.9;
}
.menudrawer a:last-child{border-bottom:0}


/* Mobile drawer social buttons (shown on mobile only) */
.drawer-social{display:none; padding:14px 0 6px;}
.drawer-social-label{font-size:12px; color:var(--muted); margin:0 0 10px; letter-spacing:.02em;}
.drawer-social-row{display:flex; gap:12px; align-items:center; justify-content:flex-start;}
.menudrawer .drawer-social .iconbtn{
  width:auto;
  height:auto;
  padding:6px;
  background:transparent;
  border:0;
  box-shadow:none;
  border-radius:0;
}
.menudrawer .drawer-social .iconbtn:hover{transform:none; box-shadow:none; opacity:1;}
/* Make Telegram / Instagram icons visually equal and perfectly centered */
.menudrawer .drawer-social .sico{display:inline-flex; width:18px; height:18px; line-height:0;}
.menudrawer .drawer-social .sico svg{width:18px; height:18px; display:block;}
@media (max-width: 960px){
  .hero-grid{grid-template-columns:1fr; }
  .preview{height:280px}
  .prod-img{height:280px}
  .grid-3{grid-template-columns:1fr}
  .grid-4{grid-template-columns:1fr 1fr}
  .gallery{grid-template-columns:1fr 1fr}
  .gallery.gallery--3{grid-template-columns:1fr 1fr}
  .gallery.big{grid-template-columns:1fr}
  .gallery.big .tile .img{height:280px}
  .popular-photos .pop-tile img{height:280px}
  .steps{grid-template-columns:1fr 1fr}
  .grid-catalog{grid-template-columns:1fr 1fr}
  .grid-catalog .tile .img{height:260px}
  .project{grid-template-columns:1fr}
  .bigimg{height:320px}
  .menu{display:none}
  .burger{display:inline-flex}
  .menudrawer.open{display:block}

  /* Mobile header: keep only MENU button near logo */
  .header-actions .iconbtn{display:none;}
  .header-actions .header-cta{display:none;}
  /* Show social icons inside menu drawer */
  .drawer-social{display:block;}
  .footer-grid{grid-template-columns:1fr}
  .kpi{grid-template-columns:1fr}
  .form{grid-template-columns:1fr}
}
@media (max-width: 520px){
  .h-title{font-size:34px}
  .prod-img{height:220px}
  .gallery{grid-template-columns:1fr}
  .gallery.gallery--3{grid-template-columns:1fr}
  .gallery.big .tile .img{height:240px}
  .popular-photos .pop-tile img{height:240px}
  .grid-catalog{grid-template-columns:1fr}
  .grid-catalog .tile .img{height:220px}
  .steps{grid-template-columns:1fr}

  /* Catalog tiles: make action buttons comfortable on small screens */
  .grid-catalog .tile-actions{flex-direction:column;}
  .grid-catalog .tile-actions .btn{width:100%; min-width:0;}
  /* Tire brand pages use inline flex actions — normalize on mobile */
  .grid-catalog .tile .meta > div[style*="display:flex"]{flex-direction:column !important; align-items:stretch;}
  .grid-catalog .tile .meta > div[style*="display:flex"] .btn{width:100%; min-width:0;}
}


/* Production title */
.prod-title{ text-transform:uppercase; font-weight:800; }


/* Tires */
.brand-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px;
}
.brand-row a{
  text-decoration:none;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  font-weight:800;
  letter-spacing:.2px;
}
.brand-row a.active{
  border-color:var(--glowDash);
  box-shadow:0 10px 24px var(--glowSoft);
  color:var(--accent);
}
.tile .img.tire{
  background:
    radial-gradient(70% 70% at 20% 20%, rgba(0,0,0,.06), transparent 60%),
    radial-gradient(70% 70% at 80% 35%, rgba(255,122,0,.10), transparent 60%),
    linear-gradient(180deg, #fff, #f7f7fb);
}
.bigimg img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:18px;
  display:block;
}
@media (max-width:720px){
  .brand-row{ gap:8px; }
  .brand-row a{ padding:9px 12px; }
}


/* Wheel catalog tabs */
.filter-pills{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0 18px;
}
.filter-pills .pill{
  cursor:pointer;
  border:1px solid var(--border);
  background:#fff;
}
.filter-pills .pill.is-active{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}

/* Catalog search + empty state */
.filterbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:-4px 0 12px;
}
.searchbox{
  flex:1;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  padding:10px 12px;
  box-shadow: 0 8px 24px rgba(16,16,24,.06);
}
.searchbox input{
  border:0;
  outline:0;
  width:100%;
  font:inherit;
  background:transparent;
}
.search-clear{
  border:0;
  background:transparent;
  cursor:pointer;
  color:var(--muted);
  font-size:14px;
  padding:4px 8px;
  border-radius:10px;
}
.search-clear:hover{ background:rgba(0,0,0,.04); color:var(--text); }

.empty-state{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  background:linear-gradient(180deg, rgba(255,122,0,.06), rgba(255,255,255,.8));
  box-shadow: var(--shadow);
  margin:10px 0 16px;
}
.empty-state .row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }

/* Sticky tabs (wheel categories) */
.filter-pills{
  position:sticky;
  top:70px;
  z-index:20;
  padding:10px 0;
  background:rgba(255,255,255,.82);
  backdrop-filter:saturate(180%) blur(10px);
}

/* Hover micro-interactions */
.tile, .card{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile:hover, .card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(16,16,24,.10);
  border-color: var(--glowDash);
}
.btn{ transition: transform .12s ease, box-shadow .12s ease; }
.btn:active{ transform: translateY(1px); }

/* Scroll reveal */
.reveal{
  opacity:0;
  transform: translateY(16px);
}
.reveal.is-visible{
  opacity:1;
  transform:none;
  transition: opacity .55s ease, transform .55s ease;
}

/* Back to top */
.to-top{
  position:fixed;
  right:18px;
  bottom:92px;
  z-index:70;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow: var(--shadow);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.to-top.show{ opacity:1; pointer-events:auto; }
.to-top:hover{ transform: translateY(-2px); }

/* Sticky contact bar */
.stickybar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  padding:10px 12px;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(180%) blur(12px);
  border-top:1px solid var(--border);
}
.stickybar .wrap{
  max-width:var(--max);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.stickybar .left{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; flex:1 1 320px; }
.stickybar .chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
}
.stickybar .chip.promo{ font-size:13px; }
.stickybar .chip .sico{ width:18px; height:18px; display:inline-flex; }
.stickybar .cta{ display:flex; gap:10px; flex-wrap:wrap; flex:0 0 auto; }

@media (max-width:720px){
  .stickybar .wrap{ justify-content:center; }
  .stickybar .left{ display:block; flex:1 1 100%; text-align:center; }
  .stickybar .left .chip{ margin:0 auto; justify-content:center; width:100%; max-width:720px; }
  .stickybar .cta{ width:100%; justify-content:center; }
  .to-top{ bottom:82px; }
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  z-index:80;
  background:rgba(10,10,14,.74);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.lightbox.open{ display:flex; }
.lightbox .frame{
  max-width:min(1040px, 96vw);
  max-height:88vh;
  position:relative;
}
.lightbox img{
  width:100%;
  height:auto;
  max-height:88vh;
  object-fit:contain;
  border-radius:18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.lightbox .close{
  position:absolute;
  top:-14px;
  right:-14px;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.12);
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Image skeleton */
.img-skeleton{
  background: linear-gradient(90deg, rgba(236,236,241,.8), rgba(236,236,241,.35), rgba(236,236,241,.8));
  background-size: 200% 100%;
  animation: sk 1.2s ease-in-out infinite;
}
@keyframes sk{
  0%{ background-position: 0% 0%; }
  100%{ background-position: -200% 0%; }
}

/* Badges (optional: add data-badge on .tile) */
.tile .tbadge{
  position:absolute;
  top:12px;
  left:12px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  background:var(--glowSoft);
  border:1px solid var(--glow);
}

/* Active menu link */
.menu a.active, .menudrawer a.active{
  color:var(--accent);
  opacity:1;
  font-weight:800;
}

.tires-page .pagehead .cta{padding-top:28px;}

/* Tire model quote modal: make form more compact */
#tireQuoteModal .panel{max-height:78vh;}
#tireQuoteModal .body{max-height:calc(78vh - 56px - 20px);}
#tireQuoteModal .form{gap:10px;}
#tireQuoteModal .field{gap:6px;}
#tireQuoteModal textarea{min-height:70px;}


/* Mobile: align section titles */
@media (max-width: 720px){
  .qc-title{ text-align:center; }
}


/* Mobile: stack tile actions */
@media (max-width: 520px){
  .tile-actions{flex-direction:column; align-items:stretch;}
  .tile-actions .btn{width:100%; min-width:0;}
}
