/*
Theme Name: AvtoUslugi Pro Landing (3-in-1)
Theme URI: https://example.com/avto-uslugi-theme
Author: AI Web Builder
Description: Готовая адаптивная тема-визитка для 3 направлений: 1) Помощь в постановке на учет в ГИБДД, 2) Сложные экспертизы ТС и легализация, 3) Обучение и получение водительских прав. Настройка контактов через Внешний вид -> Настроить. Включает общий мульти-лендинг и 3 отдельных шаблона страниц под рекламу.
Version: 1.0.0
License: GPL v2 or later
Text Domain: avto-uslugi
*/

:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-light: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #f8fafc;
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --whatsapp: #22c55e;
  --telegram: #0ea5e9;
  --border-color: #e2e8f0;
  --radius: 14px;
  --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
}

.avto-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.avto-header {
  background: var(--bg-dark);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 14px 0;
}

.avto-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.avto-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.avto-brand-badge {
  background: var(--accent-blue);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avto-brand-text strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.avto-brand-text span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
}

.avto-header-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.avto-phone-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  margin-right: 6px;
}

.avto-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.avto-btn-primary {
  background: var(--accent-blue);
  color: #fff;
}
.avto-btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
}

.avto-btn-wa {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.avto-btn-wa:hover {
  background: var(--whatsapp);
  color: #fff;
}

.avto-btn-tg {
  background: rgba(14, 165, 233, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.35);
}
.avto-btn-tg:hover {
  background: var(--telegram);
  color: #fff;
}

.avto-btn-lg {
  padding: 15px 28px;
  font-size: 16px;
  border-radius: 12px;
}

.avto-switcher-wrap {
  background: #1e293b;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.avto-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.avto-tab-btn {
  background: rgba(255,255,255,0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.avto-tab-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.avto-tab-btn.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: #60a5fa;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.avto-tab-num {
  background: rgba(0,0,0,0.25);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.avto-service-panel {
  display: none;
}
.avto-service-panel.active {
  display: block;
}

.avto-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.avto-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.avto-tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.avto-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.avto-hero p.avto-lead {
  font-size: 18px;
  color: #cbd5e1;
  margin-bottom: 28px;
}

.avto-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.avto-hero-Perks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 14px;
  color: #94a3b8;
}

.avto-hero-Perks span strong {
  color: #fff;
}

.avto-hero-card {
  background: #ffffff;
  color: var(--text-main);
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.45);
}

.avto-hero-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.avto-hero-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.avto-form-group {
  margin-bottom: 14px;
}

.avto-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #334155;
}

.avto-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.2s;
}

.avto-input:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.avto-section {
  padding: 64px 0;
}

.avto-section-alt {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.avto-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.avto-section-header h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin-bottom: 12px;
}

.avto-section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.avto-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.avto-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.avto-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.avto-card:hover {
  transform: translateY(-3px);
}

.avto-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}

.avto-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.avto-card p {
  font-size: 14.5px;
  color: var(--text-muted);
}

.avto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.avto-step-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}

.avto-step-num {
  display: inline-block;
  background: var(--accent-blue);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.avto-step-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.avto-step-card p {
  font-size: 14.5px;
  color: var(--text-muted);
}

.avto-cta-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  color: #fff;
  border-radius: 20px;
  padding: 48px 36px;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.avto-cta-banner h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}

.avto-cta-banner p {
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto 26px;
  font-size: 17px;
}

.avto-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.avto-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 44px 0 32px;
  font-size: 14px;
}

.avto-footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}

.avto-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.avto-modal-backdrop.open {
  display: flex;
}

.avto-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 440px;
  width: 100%;
  padding: 30px;
  position: relative;
}

.avto-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}

.avto-alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  padding: 14px 20px;
  border-radius: 10px;
  margin: 16px auto;
  max-width: 1140px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 900px) {
  .avto-hero-grid {
    grid-template-columns: 1fr;
  }
  .avto-switcher {
    grid-template-columns: 1fr;
  }
}



/* Floating Multi-Chat Widget (Right Bottom) */
.avto-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 995;
  font-family: inherit;
}

.avto-chat-toggle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.avto-chat-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.6);
}

.avto-chat-toggle::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.45);
  animation: avtoPulse 2s infinite;
}

@keyframes avtoPulse {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.avto-chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.avto-chat-box {
  position: absolute;
  bottom: 78px;
  right: 0;
  width: 350px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.28);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: none;
  flex-direction: column;
  animation: avtoChatSlide 0.22s ease-out;
}

.avto-chat-box.open {
  display: flex;
}

@keyframes avtoChatSlide {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.avto-chat-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.avto-chat-agent {
  display: flex;
  align-items: center;
  gap: 11px;
}

.avto-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  position: relative;
  flex-shrink: 0;
}

.avto-chat-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #0f172a;
}

.avto-chat-agent-info strong {
  display: block;
  font-size: 14.5px;
  line-height: 1.2;
}

.avto-chat-agent-info span {
  font-size: 12px;
  color: #93c5fd;
}

.avto-chat-close {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.avto-chat-body {
  padding: 16px;
  background: #f8fafc;
  max-height: 430px;
  overflow-y: auto;
}

.avto-chat-bubble {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
  border-radius: 14px 14px 14px 4px;
  font-size: 13.5px;
  color: #1e293b;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(15,23,42,0.04);
}

.avto-chat-channels-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
  margin-bottom: 8px;
}

.avto-chat-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.avto-channel-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s, transform 0.15s;
}

.avto-channel-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.avto-ch-tg { background: #0ea5e9; }
.avto-ch-max { background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%); }
.avto-ch-wa { background: #22c55e; }
.avto-ch-mail { background: #475569; }

.avto-channel-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.avto-chat-form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}

.avto-chat-form-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.avto-chat-input, .avto-chat-select, .avto-chat-textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  font-family: inherit;
}

.avto-chat-textarea {
  resize: none;
  height: 58px;
}

.avto-chat-submit {
  width: 100%;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}

.avto-chat-submit:hover {
  background: #1d4ed8;
}

@media (max-width: 480px) {
  .avto-chat-box {
    width: calc(100vw - 32px);
    right: -8px;
  }
}
