/* ========================================
   ТАТАРСЕРВИС — Ремонт цифровой техники
   ======================================== */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #dbeafe;
  --blue-bg: #eff6ff;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #fff7ed;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --white: #ffffff;
  --light: #f8fafc;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  overflow-x: hidden;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ===== Cookie-баннер ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 9999;
  flex-wrap: wrap;
  font-size: 0.875rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.cookie-banner a { color: var(--orange); text-decoration: underline; }
.cookie-banner-text { max-width: 700px; }

/* ===== Навигация ===== */
.navbar {
  background: #000000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  padding: 10px 0;
}
.navbar-brand { padding: 0; }
.navbar-brand-text {
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  white-space: nowrap;
}
.nav-link {
  font-weight: 500;
  color: rgba(255,255,255,0.7) !important;
  transition: var(--transition);
  margin: 0 2px;
  font-size: 0.875rem;
  padding: 8px 12px !important;
  border-radius: 8px;
}
.nav-link:hover { color: var(--white) !important; background: rgba(255,255,255,0.08); }
.nav-phone {
  font-weight: 700;
  color: var(--orange) !important;
  font-size: 1rem;
  white-space: nowrap;
}
.navbar-toggler-icon { color: var(--white); font-size: 1.5rem; }
.navbar-toggler { border-color: rgba(255,255,255,0.2); border-radius: 8px; }

/* ===== Hero ===== */
.hero {
  background: #000000;
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  padding: 50px 0 70px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
}
.hero h1 span {
  background: linear-gradient(135deg, #f97316, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
  max-width: 520px;
  line-height: 1.65;
}
.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.hero-badge i { color: var(--orange); margin-right: 6px; }
.hero-logo { width: 100%; height: auto; }
.hero-logo-desktop { height: 100%; max-height: 100%; width: auto; }
.hero .row { align-items: center !important; }
.hero .col-lg-6.text-center { display: flex; align-items: center; justify-content: center; }

/* ===== Кнопки ===== */
.btn-primary {
  background: var(--blue);
  border: none;
  color: var(--white);
  padding: 12px 28px;
  font-weight: 700;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}
.btn-accent {
  background: var(--orange);
  border: none;
  color: var(--white);
  padding: 14px 32px;
  font-weight: 700;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-accent:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow:0 8px 24px rgba(249,115,22,0.4);
}
.btn-outline-light {
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--orange);
  color: var(--orange);
}
.btn-outline-primary {
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 600;
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline-primary:hover {
  background: var(--blue);
  color: var(--white);
}

/* ===== Секции ===== */
.section {
  padding: 90px 0;
}
.section.bg-light { background: var(--light); }
.section-title {
  font-weight: 800;
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.section-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 48px;
}
.text-center .section-subtitle {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Карточки услуг ===== */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  height: 100%;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top:0;
  left:0;
  right:0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  margin:0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon.computer { background: var(--blue-light); color: var(--blue); }
.service-icon.tv { background: #ede9fe; color: #7c3aed; }
.service-icon.laptop { background: #d1fae5; color: #059669; }
.service-icon.tablet { background: #ffe4e6; color: #e11d48; }
.service-icon.phone { background: var(--orange-light); color: var(--orange); }
.service-card h4 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--dark);
}
.service-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin:0;
  line-height: 1.6;
}

/* ===== Преимущества ===== */
.advantage-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.advantage-item:last-child { border-bottom: none; }
.advantage-icon {
  min-width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.advantage-text h5 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.advantage-text p {
  color: var(--gray);
  font-size: 0.9rem;
  margin:0;
  line-height: 1.55;
}

/* ===== Цены ===== */
.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  height: 100%;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured {
  border-color: var(--blue);
  box-shadow:0 0 0 1px var(--blue), var(--shadow-md);
  position: relative;
}
.pricing-card.featured::after {
  content: 'Популярный';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  padding: 4px 20px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.pricing-card h4 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--dark);
}
.pricing-price {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 16px;
}
.pricing-features {
  list-style: none;
  padding:0;
  margin:0 0 24px;
  flex-grow:1;
}
.pricing-features li {
  padding: 8px 0;
  color: var(--gray);
  font-size: 0.95rem;
}
.pricing-features li::before {
  content: '✓ ';
  color: #10b981;
  font-weight: 700;
  margin-right: 4px;
}
.pricing-card .btn { margin-top: auto; }

/* ===== Отзывы ===== */
.avito-review-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light);
  padding: 14px 28px;
  border-radius: 50px;
  border: 1px solid var(--border);
}
.avito-stars { font-weight: 700; color: var(--dark); }
.avito-count { color: var(--gray); font-size: 0.95rem; }

/* ===== Трекинг заказа ===== */
.order-track-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.order-track-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--blue-light);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 16px;
}

/* ===== Контакты / Форма ===== */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.contact-form-wrapper .form-control {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  transition: var(--transition);
  color: var(--dark);
  background: var(--white);
  font-size: 0.95rem;
}
.contact-form-wrapper .form-control:focus {
  border-color: var(--blue);
  box-shadow:0 0 0 4px rgba(37,99,235,0.08);
}
.contact-form-wrapper select.form-control {
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  appearance: menulist;
  height: auto;
  min-height: 48px;
}
.contact-form-wrapper label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.contact-form-wrapper .form-check-label {
  font-size: 0.825rem;
  color: var(--gray);
}
.contact-form-wrapper .form-check-label a { color: var(--blue); }

/* ===== Карта ===== */
#map { height: 450px; }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  color: var(--white);
  font-weight: 800;
  font-size: 2.2rem;
}
.cta-section p {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
}

/* ===== Футер ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 64px 0 32px;
}
.footer h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.footer a {
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer a:hover {
  color: var(--orange);
  text-decoration: none;
}
.footer-contact li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.footer-contact i {
  color: var(--orange);
  font-size: 1.1rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  margin-top: 48px;
  text-align: center;
  font-size: 0.875rem;
}

/* ===== Тост ===== */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #059669;
  color: #fff;
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 600;
  z-index: 9999;
  box-shadow:0 8px 32px rgba(0,0,0,0.2);
  animation: slideIn 0.4s ease, fadeOut 0.4s ease 3.6s forwards;
}
.toast-notification.error { background: #dc3545; }
@keyframes slideIn {
  from { transform: translateX(120%); opacity:0; }
  to { transform: translateX(0); opacity:1; }
}
@keyframes fadeOut {
  from { opacity:1; }
  to { opacity:0; }
}

/* ===== Адаптив ===== */
@media (max-width: 991px) {
  .hero {
    padding: 10px 0 60px;
    text-align: center;
  }
  .hero h1 { font-size: 2.2rem; }
  .hero p { margin: 16px auto 24px; }
  .hero-badges { justify-content: center; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.8rem; }
}

@media (max-width: 767px) {
  .hero h1 { font-size: 1.7rem; }
  .service-icon { width: 60px; height: 60px; border-radius: 16px; }
  .contact-form-wrapper { padding: 24px; }
  .cta-section h2 { font-size: 1.5rem; }
  .pricing-card.featured { transform: none; }
}

@media (max-width: 575px) {
  .hero h1 { font-size: 1.45rem; }
  .section-title { font-size: 1.5rem; }
  .pricing-price { font-size: 1.8rem; }
}