/* AVTOSKLO Finder — premium dark widget */
.avtosklo-finder {
  background: #11161e;
  border: 1px solid #2f3949;
  border-radius: 16px;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #e6ecf2;
  max-width: 520px;
  margin: 0 auto 24px;
}
.avtosklo-finder *,
.avtosklo-finder *::before,
.avtosklo-finder *::after { box-sizing: border-box; }
.avtosklo-finder__header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.avtosklo-finder__num {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  color: #ff5a1f; font-size: 14px;
  background: rgba(255, 90, 31, 0.18);
  padding: 2px 8px; border-radius: 4px;
}
.avtosklo-finder__title {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 28px; letter-spacing: 1.5px;
  margin: 0; font-weight: 400; color: #e6ecf2;
}
.avtosklo-finder__sub {
  font-size: 13px; color: #5b6678; margin-bottom: 24px;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
}
.avtosklo-finder__form { display: grid; gap: 12px; }
.avtosklo-finder__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.avtosklo-finder__field {
  background: #0a0e14; border: 1px solid #232b38;
  border-radius: 10px; padding: 12px 16px;
  transition: border-color 0.2s;
}
.avtosklo-finder__field:focus-within { border-color: #ff5a1f; }
.avtosklo-finder__field label {
  font-size: 11px; color: #5b6678;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  text-transform: uppercase; letter-spacing: 1px;
  display: block; margin-bottom: 4px;
}
.avtosklo-finder__field select {
  width: 100%; background: transparent; border: none;
  color: #e6ecf2; font-size: 16px; outline: none;
  font-family: inherit; cursor: pointer;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%238b97a8' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat; background-position: right 0 center;
}
.avtosklo-finder__field select option { background: #161c26; color: #e6ecf2; }
.avtosklo-finder__field select:disabled { color: #5b6678; cursor: not-allowed; }
.avtosklo-finder__submit {
  background: #ff5a1f; color: white; border: none;
  padding: 16px; border-radius: 10px;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 18px; letter-spacing: 2px;
  cursor: pointer; transition: all 0.2s; margin-top: 8px;
}
.avtosklo-finder__submit:hover:not(:disabled) {
  background: #ff7440; transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 90, 31, 0.18);
}
.avtosklo-finder__submit:disabled {
  background: #232b38; color: #5b6678; cursor: not-allowed;
}
@media (max-width: 600px) {
  .avtosklo-finder { padding: 24px; }
  .avtosklo-finder__row { grid-template-columns: 1fr; }
  .avtosklo-finder__title { font-size: 24px; }
}

/* ============================================================
   v4 — Головна як у прототипі: hero / trust / brands / tiles
   ============================================================ */
.av-hero {
  position: relative;
  padding: 40px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(255,90,31,0.08), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(0,212,255,0.04), transparent 60%);
}
.av-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.av-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.av-hero__text h1 {
  font-family: 'Bebas Neue', 'Impact', sans-serif !important;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 1px;
  margin: 0 0 20px;
  color: #e6ecf2;
}
.av-hero__text h1 span { color: #ff5a1f; }
.av-hero__subtitle {
  font-size: 16px;
  color: #8b97a8;
  max-width: 520px;
  margin-bottom: 28px;
}
.av-hero__stats { display: flex; gap: 32px; flex-wrap: wrap; }
.av-stat .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  color: #ff5a1f;
  letter-spacing: 1px;
  line-height: 1;
}
.av-stat .lbl {
  font-size: 12px;
  color: #5b6678;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Finder: рамка-градієнт як у прототипі + таби */
.avtosklo-finder { max-width: none; margin: 0; }
.avtosklo-finder::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, #ff5a1f, transparent 50%, #00d4ff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.4;
}
.avtosklo-finder__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.avtosklo-finder__tab {
  background: #0a0e14;
  border: 1px solid #232b38;
  border-radius: 8px;
  color: #8b97a8;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.avtosklo-finder__tab.active {
  border-color: #ff5a1f;
  color: #ff5a1f;
  background: rgba(255,90,31,0.08);
}
.avtosklo-finder__field input[type="text"] {
  width: 100%;
  background: transparent;
  border: none;
  color: #e6ecf2;
  font-size: 16px;
  outline: none;
  font-family: inherit;
}
.avtosklo-finder__field input[type="text"]::placeholder { color: #5b6678; }

/* Trust */
.av-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid #232b38;
  border-bottom: 1px solid #232b38;
  margin-bottom: 16px;
}
.av-trust__item { display: flex; gap: 12px; align-items: flex-start; }
.av-trust__item .ico { font-size: 26px; line-height: 1; }
.av-trust__item .ttl { font-weight: 700; font-size: 14px; color: #e6ecf2; }
.av-trust__item .desc { font-size: 12px; color: #5b6678; margin-top: 2px; }

/* Секції */
.av-section { padding: 48px 0 8px; }
.av-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 24px;
  flex-wrap: wrap;
}
.av-section__head h2 {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 38px;
  letter-spacing: 1px;
  line-height: 1;
  margin: 0;
  color: #e6ecf2;
}
.av-section__head .lead {
  font-size: 13px;
  color: #5b6678;
  font-family: 'JetBrains Mono', monospace;
  display: block;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.av-section__head a {
  color: #ff5a1f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.av-section__head a:hover { color: #ff7440; }

/* Сітка марок */
.av-brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.av-brand-card {
  background: #161c26;
  border: 1px solid #232b38;
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  text-decoration: none;
  color: #e6ecf2;
  transition: all 0.2s;
  display: block;
}
.av-brand-card:hover {
  border-color: #ff5a1f;
  transform: translateY(-2px);
  color: #e6ecf2;
  background: linear-gradient(180deg, #161c26, rgba(255,90,31,0.05));
  text-decoration: none;
}
.av-brand-card .name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
}
.av-brand-card .count {
  font-size: 11px;
  color: #5b6678;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 4px;
}

/* Плитки типів скла */
.av-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.av-tile {
  background: #161c26;
  border: 1px solid #232b38;
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #e6ecf2;
  transition: all 0.2s;
}
.av-tile:hover {
  border-color: #ff5a1f;
  transform: translateY(-2px);
  color: #e6ecf2;
  text-decoration: none;
}
.av-tile .ico { font-size: 30px; }
.av-tile .name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  flex: 1;
}
.av-tile .arrow { color: #ff5a1f; font-size: 20px; }

@media (max-width: 991px) {
  .av-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .av-trust { grid-template-columns: 1fr 1fr; }
  .av-tiles { grid-template-columns: 1fr; }
  .av-section__head h2 { font-size: 30px; }
}

/* ---------- v5: головна на повну ширину (прибираємо grid колонок OC на home) ---------- */
.av-main #content{padding:0!important;}
/* якщо home-layout має бічні колонки — ховаємо порожні */
.common-home #column-left:empty,.common-home #column-right:empty{display:none;}
.common-home .av-main .row{margin:0;}
.common-home #content{width:100%!important;}
/* hero не повинен прилипати до країв на мобільному */
@media (max-width:991px){
  .av-hero__inner{grid-template-columns:1fr; gap:28px;}
  .av-hero{padding:28px 0 40px;}
}
