/* css/style.css */

:root {
  --primary: #ff6b00;      /* яркий оранжевый */
  --secondary: #0057ff;    /* насыщенный синий */
  --accent: #00c853;       /* зелёный акцент */
  --light-bg: #f9fbff;
  --text: #2d3748;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background-color: #fff;
  color: var(--text);
  line-height: 1.6;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Упрощённые услуги — квадраты с фоном и заголовком */
.services-section {
  margin: 2.5rem 0;
}

.services-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.service-item {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.service-item h3 {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  padding: 0 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin: 0;
  line-height: 1.3;
}

/* Фоны для услуг */
.service-item[data-service="mount"] {
  background: url('https://avatars.mds.yandex.net/get-altay/9719535/2a0000018aacbbbf8cb6004a2c4d9757d1b5/orig') center/cover no-repeat;
}

.service-item[data-service="balance"] {
  background: url('https://avatars.mds.yandex.net/i?id=c20eba15856188dbc39d1b26979311b713e29978-5657629-images-thumbs&n=13') center/cover no-repeat;
}

.service-item[data-service="repair"] {
  background: url('https://avatars.mds.yandex.net/get-altay/10702157/2a0000018ad53f906f65d3ae5f81def7ee20/XXL_height') center/cover no-repeat;
}

.service-item[data-service="storage"] {
  background: url('https://avatars.mds.yandex.net/get-altay/6237886/2a0000017fd18aa6bee42b0d35a62badfb74/XXL_height') center/cover no-repeat;
}

.service-item[data-service="disk"] {
  background: url('https://avatars.mds.yandex.net/get-altay/5115998/2a0000018f52dc7cf479f0a4ffb9cbab88a9/XXL_height') center/cover no-repeat;
}

.service-item[data-service="nitrogen"] {
  background: url('https://avatars.mds.yandex.net/i?id=8f93e897710ea76ec50c742f9f980336_l-5241311-images-thumbs&n=13') center/cover no-repeat;
}

/* Точки (адреса) */
.tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0 1.5rem;
}

.tab-btn {
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: var(--radius);
  background: #eef5ff;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.tab-btn:hover {
  background: #dde9ff;
}

.tab-btn.active {
  background: var(--secondary);
  color: white;
  transform: scale(1.03);
}

.point-details {
  position: relative;
  min-height: 180px;
}

.point-card {
  display: none;
  padding: 1.8rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeInUp 0.5s ease forwards;
}

.point-card.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.point-card a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.point-card a:hover {
  text-decoration: underline;
}

/* Карта */
.map-section {
  margin: 2.5rem 0;
}

#yandex-map {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Онлайн-запись */
.booking-section {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(to right, #f0f7ff, #e6f2ff);
  border-radius: var(--radius);
  margin: 2.5rem 0;
}

.booking-section h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.booking-notes {
  max-width: 600px;
  margin: 1.2rem auto 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.note {
  background: #f0f9ff;
  border-left: 4px solid var(--secondary);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.note-storage {
  border-left-color: var(--primary);
}

.note-reserved {
  border-left-color: var(--accent);
}

.note u {
  text-decoration: underline;
  text-decoration-color: var(--secondary);
  font-weight: 600;
}

#booking-widget {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  font-style: italic;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  color: #718096;
  border-top: 1px solid #edf2f7;
  margin-top: 2rem;
}

/* Адаптив */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

  .tab-btn {
    width: 100%;
  }

  .service-item {
    width: 140px;
    height: 140px;
  }

  .service-item h3 {
    font-size: 1.1rem;
  }
}