* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #111827;
  line-height: 1.6;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-block {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  margin-right: 10px;
}

.logo-text {
  font-size: 13px;
  color: #4b5563;
}

.logo-title {
  font-weight: 600;
  font-size: 15px;
  color: #111827;
}

.logo-subtitle {
  font-size: 12px;
  color: #6b7280;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav li {
  margin-left: 18px;
  font-size: 14px;
}

nav a {
  text-decoration: none;
  color: #0b6efd;
  font-weight: 600;
}

nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 16px 40px 16px;
}

/* Секции */

section {
  padding-top: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e5e7eb;
}

section:last-of-type {
  border-bottom: none;
}

h1 {
  font-size: 28px;
  margin: 0 0 16px 0;
  color: #111827;
}

h2 {
  font-size: 22px;
  margin: 0 0 14px 0;
  color: #111827;
}

h3 {
  font-size: 18px;
  margin: 24px 0 10px 0;
  color: #111827;
}

p {
  margin: 8px 0;
}

/* Главный экран */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}

.hero-text {
  flex: 1 1 320px;
  min-width: 260px;
}

.hero-image {
  flex: 0 0 320px;
  max-width: 380px;
}

.device-photo {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

/* Галерея изображений */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.gallery-small {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.gallery-small img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

/* Таблицы характеристик */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px 0;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  vertical-align: top;
}

.spec-table th {
  width: 40%;
  font-weight: 600;
  background: #f9fafb;
}

/* Списки */

ul {
  margin: 8px 0 8px 18px;
  padding: 0;
}

.kit-list li,
.service-list li {
  margin-bottom: 6px;
}

/* Контакты */

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 13px;
  color: #1d4ed8;
}

/* Адаптивность */

@media (max-width: 900px) {
  .contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  nav ul {
    flex-wrap: wrap;
  }

  nav li {
    margin-left: 0;
    margin-right: 12px;
    margin-bottom: 4px;
  }

  main {
    padding-top: 96px;
  }

  section {
    padding-top: 40px;
  }

  .hero {
    flex-direction: column;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
  .gallery-small {
    grid-template-columns: 1fr;
  }
}
