* {
  box-sizing: border-box;
}

.service-page {
  padding: 0;
  margin: 0;
  min-height: 100%;
  background: #1a1a1a;
  color: #ffffff;
}

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

/* Шапка */
.page-header {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(139, 92, 246, 0.1) 50%,
    rgba(6, 182, 212, 0.1) 100%
  );
  border: 1px solid rgba(55, 65, 81, 0.3);
  border-radius: 20px;
  margin: 20px auto 30px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 50px 0 40px;
}

.header-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.2s forwards;
}

.header-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.4s forwards;
  line-height: 1.7;
}

.header-navigation {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.8s forwards;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.services-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.advantages-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.contact-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
}

.nav-icon::before {
  font-family: FontAwesome;
  font-size: 1.1rem;
}

.services-btn .nav-icon::before {
  content: "\f0ad";
}

.advantages-btn .nav-icon::before {
  content: "\f005";
}

.contact-btn .nav-icon::before {
  content: "\f086";
}

/* Секции */
.services-section,
.advantages-section {
  padding: 10px 0; /* Изменено с 30px на 10px */
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #ffffff 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Сетка услуг - ВЫРОВНЕННАЯ ПО СЕТКЕ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 10px; /* Изменено с 30px на 10px */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch; /* Выравнивание карточек по высоте */
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: #2a2a2a;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 450px; /* Увеличена высота для размещения списка особенностей */
  border: 2px solid transparent;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-description {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ДЕСКТОПНАЯ ВЕРСИЯ - показываем список сразу, без кнопки */
.features-spoiler {
  margin-top: auto; /* Прижимаем к низу карточки */
}

.spoiler-header {
  display: none; /* Скрываем кнопку на десктопе */
}

.spoiler-content {
  display: block; /* Показываем контент сразу */
  background: rgba(55, 65, 81, 0.2);
  border: 1px solid rgba(75, 85, 99, 0.3);
  border-radius: 8px;
  padding: 16px;
  position: static;
  box-shadow: none;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #e2e8f0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.features-list li::before {
  content: "—";
  color: #22c55e;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

/* МОБИЛЬНАЯ ВЕРСИЯ - возвращаем спойлеры */
@media (max-width: 768px) {
  .spoiler-header {
    display: flex; /* Показываем кнопку на мобильных */
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(55, 65, 81, 0.4);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
  }

  .spoiler-header:hover {
    background: rgba(55, 65, 81, 0.6);
    border-color: rgba(75, 85, 99, 0.7);
  }

  .spoiler-header.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
  }

  .spoiler-content {
    display: none; /* Скрываем контент по умолчанию на мобильных */
    background: rgba(55, 65, 81, 0.4);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 16px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  }

  .spoiler-content.active {
    display: block;
  }

  .service-card {
    min-height: 400px; /* Меньше высота для мобильных */
  }
}

.spoiler-title {
  font-weight: 600;
  color: #a78bfa;
  font-size: 0.9rem;
}

.spoiler-arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
  color: #a78bfa;
}

.service-card.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Цветные рамки для карточек */
.repair-card {
  border-color: #ef4444;
}

.diagnostic-card {
  border-color: #22c55e;
}

.maintenance-card {
  border-color: #3b82f6;
}

.gpu-card {
  border-color: #f59e0b;
}

.keyboard-card {
  border-color: #8b5cf6;
}

.windows-card {
  border-color: #06b6d4;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.service-card:hover .card-icon {
  transform: scale(1.1);
}

.card-icon.repair {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.card-icon.repair::after {
  content: "\f0e7";
  font-family: FontAwesome;
  font-size: 20px;
  position: absolute;
}

.card-icon.diagnostic {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.card-icon.diagnostic::after {
  content: "\f0ad";
  font-family: FontAwesome;
  font-size: 20px;
  position: absolute;
}

.card-icon.maintenance {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.card-icon.maintenance::after {
  content: "\f108";
  font-family: FontAwesome;
  font-size: 20px;
  position: absolute;
}

.card-icon.gpu {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.card-icon.gpu::after {
  content: "\f26c";
  font-family: FontAwesome;
  font-size: 20px;
  position: absolute;
}

.card-icon.keyboard {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.card-icon.keyboard::after {
  content: "\f11c";
  font-family: FontAwesome;
  font-size: 20px;
  position: absolute;
}

.card-icon.windows {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.card-icon.windows::after {
  content: "\f17a";
  font-family: FontAwesome;
  font-size: 20px;
  position: absolute;
}

.card-title-wrapper {
  flex: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.card-price {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-block;
}

/* Преимущества */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }
}

.advantage-card {
  background: rgba(42, 42, 42, 0.95);
  border: 2px solid #374151;
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(15px);
  opacity: 0;
  transform: translateY(30px);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.advantage-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.advantage-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.advantage-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
  transition: transform 0.3s ease;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.advantage-card:hover .advantage-icon {
  transform: scale(1.15);
}

.advantage-icon::after {
  font-family: FontAwesome;
  font-size: 28px;
  position: absolute;
  color: white;
}

.advantage-icon.official {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.advantage-icon.official::after {
  content: "\f023";
}

.advantage-icon.trust {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.advantage-icon.trust::after {
  content: "\f0c0";
}

.advantage-icon.honest {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.advantage-icon.honest::after {
  content: "\f05a";
}

.advantage-icon.warranty {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.advantage-icon.warranty::after {
  content: "\f132";
}

.advantage-icon.speed {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.advantage-icon.speed::after {
  content: "\f0e7";
}

.advantage-icon.location {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.advantage-icon.location::after {
  content: "\f041";
}

.advantage-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.advantage-desc {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.6;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Новый блок контактов */
.contacts-new-section {
  padding: 10px 0; /* Изменено с 60px на 10px */
  background: #1a1a1a;
  margin: 10px auto; /* Изменено с 30px на 10px */
}

.contacts-new-wrapper {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 0;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 16px;
  overflow: hidden;
}

.contacts-new-info {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 24px;
  height: 100%;
  border-right: 1px solid #3a3a3a;
}

/* Статус магазина */
.store-status-block {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #3a3a3a;
}

.store-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #1e1e1e;
  border: 1px solid #404040;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.store-status::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  transition: all 0.3s ease;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.status-indicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0.3;
  animation: statusPulse 2.5s infinite;
}

.store-status.open {
  background: linear-gradient(135deg, #1e1e1e, #1a2e1a);
  border-color: #22c55e;
}

.store-status.open::before {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.store-status.open .status-indicator {
  background: #22c55e;
}

.store-status.open .status-indicator::before {
  background: #22c55e;
}

.store-status.open .status-text {
  color: #22c55e;
  font-weight: 600;
}

.store-status.open .status-time {
  color: #86efac;
}

.store-status.closed {
  background: linear-gradient(135deg, #1e1e1e, #2e1a1a);
  border-color: #ef4444;
}

.store-status.closed::before {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.store-status.closed .status-indicator {
  background: #ef4444;
}

.store-status.closed .status-indicator::before {
  background: #ef4444;
}

.store-status.closed .status-text {
  color: #ef4444;
  font-weight: 600;
}

.store-status.closed .status-time {
  color: #fca5a5;
}

.status-content {
  flex: 1;
  z-index: 2;
  position: relative;
}

.status-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #a1a1aa;
  transition: all 0.3s ease;
  display: block;
  margin: 0 0 2px 0;
  line-height: 1.3;
}

.status-time {
  font-size: 0.75rem;
  font-weight: 400;
  color: #71717a;
  transition: all 0.3s ease;
  display: block;
  line-height: 1.2;
  margin: 0;
}

@keyframes statusPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0.1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
}

.contact-new-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #3a3a3a;
}

.contact-new-item:last-of-type {
  margin-bottom: 12px;
  border-bottom: none;
  padding-bottom: 0;
}

.contact-new-icon {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}

.contact-new-icon i {
  color: white;
  font-size: 16px;
}

.contact-new-content {
  flex: 1;
}

.contact-new-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: white;
  font-size: 0.95rem;
}

.contact-new-link {
  color: #a1a1aa;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  margin-bottom: 3px;
  font-size: 0.85rem;
  line-height: 1.3;
}

.contact-new-link:hover {
  color: #8b5cf6;
  transform: translateX(4px);
}

.contact-new-phones {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-new-schedule {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-new-schedule span {
  color: #a1a1aa;
  font-size: 0.85rem;
  line-height: 1.3;
}

.social-new-section {
  margin-top: 8px;
}

.social-new-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.social-new-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #3a3a3a;
  color: white;
  font-weight: 500;
  font-size: 0.75rem;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.social-new-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-new-vk {
  background: linear-gradient(135deg, #4c75a3, #5181b8);
  border-color: #5181b8;
}

.social-new-vk:hover {
  background: linear-gradient(135deg, #5181b8, #6192c9);
  box-shadow: 0 8px 25px rgba(81, 129, 184, 0.4);
}

.social-new-telegram {
  background: linear-gradient(135deg, #0088cc, #229ed9);
  border-color: #229ed9;
}

.social-new-telegram:hover {
  background: linear-gradient(135deg, #229ed9, #33aadd);
  box-shadow: 0 8px 25px rgba(34, 158, 217, 0.4);
}

.social-new-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-color: #25d366;
}

.social-new-whatsapp:hover {
  background: linear-gradient(135deg, #128c7e, #075e54);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.social-new-link i {
  font-size: 14px;
}

.contacts-new-map {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  height: 100%;
  min-height: 350px;
}

#yandex-map-new {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.ymaps-2-1-79-copyright,
.ymaps-2-1-79-map-copyrights-promo,
[class*="ymaps-2"][class*="copyright"],
[class*="ymaps-2"][class*="logo"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-title {
    font-size: 2.2rem;
  }

  .header-subtitle {
    font-size: 1.1rem;
  }

  .nav-button {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .service-card {
    padding: 20px;
  }

  .card-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .card-icon::after {
    font-size: 16px !important;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-price {
    font-size: 0.85rem;
    padding: 5px 10px;
  }

  .advantage-card {
    padding: 20px;
    min-height: 200px;
  }

  .advantage-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .advantage-icon::after {
    font-size: 24px !important;
  }

  .contacts-new-wrapper {
    grid-template-columns: 1fr;
    max-width: 95%;
    width: 95%;
  }

  .contacts-new-info {
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid #3a3a3a;
  }

  .contacts-new-map {
    min-height: 300px;
  }

  .contact-new-item {
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .social-new-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: space-between;
  }

  .social-new-link {
    flex: 0 1 calc(33% - 4px);
    min-width: 0;
    padding: 8px 6px;
  }

  .social-new-link span {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 40px 0 30px;
  }

  .header-title {
    font-size: 1.8rem;
  }

  .header-subtitle {
    font-size: 1rem;
  }

  .nav-button {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-section,
  .advantages-section {
    padding: 20px 0;
  }

  .service-card,
  .advantage-card {
    padding: 18px;
  }

  .card-header {
    gap: 12px;
  }

  .card-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .card-title {
    font-size: 1rem;
  }

  .advantage-icon {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .contacts-new-info {
    padding: 16px;
  }

  .contact-new-icon {
    min-width: 36px;
    height: 36px;
    padding: 8px;
  }

  .contact-new-icon i {
    font-size: 14px;
  }

  .contact-new-title {
    font-size: 0.9rem;
  }

  .contact-new-link,
  .contact-new-schedule span {
    font-size: 0.8rem;
  }

  .social-new-link {
    padding: 8px 4px;
    font-size: 0.7rem;
  }

  .social-new-link i {
    font-size: 12px;
  }

  .contacts-new-map {
    min-height: 250px;
  }

  .status-text {
    font-size: 0.85rem;
  }

  .status-time {
    font-size: 0.7rem;
  }
}

.location-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.location-link:hover {
  color: #06b6d4;
  text-decoration: underline;
}
