/* GPS Антирадар — переработанный дизайн, кликабельный */

:root {
  --ar-primary: #e53935;
  --ar-primary-hover: #ff5252;
  --ar-primary-dark: #c62828;
  --ar-bg: #070B21;
  --ar-surface: rgba(255,255,255,0.08);
  --ar-text: #fff;
  --ar-text-muted: #8b949e;
  --ar-border: rgba(255,255,255,0.15);
  --ar-shadow: 0 4px 20px rgba(0,0,0,0.3);
  --ar-shadow-hover: 0 8px 30px rgba(229,57,53,0.35);
}

* { box-sizing: border-box; }

body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

.ar-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #000 0%, #070B21 100%);
  color: var(--ar-text);
  padding-bottom: 90px;
}

.ar-notice {
  font-size: 0.75rem;
  color: var(--ar-text-muted);
  text-align: center;
  margin: 0;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.2);
}

.ar-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}

/* Hero */
.ar-hero {
  text-align: center;
  padding: 1.5rem 0 2rem;
}

.ar-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.25rem;
  color: var(--ar-text);
  letter-spacing: -0.02em;
}

.ar-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ar-primary);
  margin: 0 0 0.75rem;
}

.ar-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ar-text-muted);
  margin: 0 0 1.25rem;
}

.ar-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ar-feat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #2d2d2d;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ar-feat-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.ar-feat-icon--star {
  color: #ffd54f;
}

.ar-feat-icon--lock {
  color: #fff;
  opacity: 0.95;
}

.ar-feat-icon--wifi {
  color: #42a5f5;
}

.ar-hero-img,
.ar-block-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0 0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.ar-block-img {
  margin: 0 0 2rem;
}

/* Видео */
.ar-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}

.ar-video-wrap iframe,
.ar-video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
}

/* CTA — главная кнопка */
.ar-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.ar-cta--primary {
  background: linear-gradient(180deg, #ad0000 0%, #83100d 50%, #e32121 100%);
  border: 1px solid #000;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(173,0,0,0.4);
}

.ar-cta--primary:hover,
.ar-cta--primary:active,
.ar-cta--primary:focus {
  background: linear-gradient(180deg, #c40000 0%, #9a1512 50%, #ff3333 100%);
  transform: scale(1.02);
  box-shadow: var(--ar-shadow-hover);
  color: #fff;
}

.ar-cta--primary:active {
  transform: scale(0.98);
}

.ar-cta--secondary {
  background: transparent;
  color: var(--ar-text);
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: none;
}

.ar-cta--secondary:hover,
.ar-cta--secondary:active,
.ar-cta--secondary:focus {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: var(--ar-text);
}

.ar-btn-more {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(180deg, #ad0000 0%, #83100d 50%, #e32121 100%);
  border: 1px solid #000;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(173,0,0,0.4);
}

.ar-btn-more:hover {
  background: linear-gradient(180deg, #c40000 0%, #9a1512 50%, #ff3333 100%);
  box-shadow: 0 6px 20px rgba(173,0,0,0.5);
  color: #fff;
}

.ar-btn-more-text { display: block; }
.ar-btn-more-sub { display: block; font-size: 0.8rem; font-weight: 500; opacity: 0.95; margin-top: 0.25rem; }

.ar-cta-text {
  display: block;
}

.ar-cta-sub {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.ar-cta--large {
  padding: 1.25rem 1.5rem;
  font-size: 1.15rem;
}

/* Блоки */
.ar-block {
  margin-bottom: 2rem;
}

.ar-block-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--ar-text);
}

/* Сетка карточек — кликабельные тайлы */
.ar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.ar-grid--5 {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.ar-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: var(--ar-surface);
  border-radius: 14px;
  border: 2px solid var(--ar-border);
  text-decoration: none;
  color: var(--ar-text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--ar-shadow);
  -webkit-tap-highlight-color: transparent;
}

.ar-tile:hover,
.ar-tile:active,
.ar-tile:focus {
  border-color: var(--ar-primary);
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: var(--ar-shadow-hover);
}

.ar-tile:active {
  transform: translateY(0);
}

.ar-tile-icon {
  font-size: 1.75rem;
}

.ar-tile-text {
  text-align: center;
}

/* Чеклист */
.ar-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ar-checklist li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2.25rem;
  font-size: 1rem;
  color: var(--ar-text);
  border-bottom: 1px solid var(--ar-border);
}

.ar-checklist li:last-child {
  border-bottom: none;
}

.ar-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--ar-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35rem;
  text-align: center;
}

/* Преимущества */
.ar-advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .ar-advantages {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ar-adv {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.25rem 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.ar-adv:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.ar-adv-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.ar-adv-icon--offline { color: #ffd54f; }
.ar-adv-icon--voice { color: #42a5f5; }
.ar-adv-icon--gps { color: #ef5350; }
.ar-adv-icon--nav { color: #42a5f5; }
.ar-adv-icon--ui { color: #fff; }
.ar-adv-icon--update { color: #66bb6a; }

.ar-adv-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ar-text);
  text-align: center;
}

/* Пиллы (legacy) */
.ar-pill {
  padding: 0.6rem 0.9rem;
  background: var(--ar-surface);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid var(--ar-border);
  box-shadow: var(--ar-shadow);
  color: var(--ar-text);
}

/* CTA блок */
.ar-cta-block {
  text-align: center;
  margin: 2rem 0 1.5rem;
}

.ar-cta-block .ar-cta {
  max-width: 320px;
  margin: 0 auto;
}

/* Отзывы */
.ar-reviews {
  margin-bottom: 2rem;
}

.ar-review {
  font-size: 0.95rem;
  color: var(--ar-text-muted);
  text-align: center;
  margin: 0.5rem 0;
  font-style: italic;
}

/* Футер */
.ar-footer {
  font-size: 0.8rem;
  color: var(--ar-text-muted);
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ar-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  line-height: 1.5;
}

.ar-footer a {
  color: var(--ar-text-muted);
  text-decoration: none;
}

.ar-footer a:hover {
  text-decoration: underline;
  color: var(--ar-text);
}

/* Стики CTA внизу — всегда под рукой */
.ar-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: block;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, #ad0000 0%, #83100d 50%, #e32121 100%);
  border-top: 1px solid #000;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.ar-sticky-cta:hover,
.ar-sticky-cta:active {
  background: linear-gradient(180deg, #c40000 0%, #9a1512 50%, #ff3333 100%);
  color: #fff;
}

/* Кнопка «Наверх» */
.ar-scroll-top {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 99;
  width: 48px;
  height: 48px;
  padding: 0;
  background: linear-gradient(180deg, #ad0000 0%, #83100d 50%, #e32121 100%);
  border: 1px solid #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(229,57,53,0.4);
  transition: opacity 0.2s, transform 0.2s;
}

.ar-scroll-top:hover {
  background: linear-gradient(180deg, #c40000 0%, #9a1512 50%, #ff3333 100%);
  transform: scale(1.05);
}

.ar-scroll-top[hidden] {
  display: none;
}

.ar-page:has(.ar-sticky-cta) .ar-scroll-top {
  bottom: 5rem;
}
