* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: #fafafa;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 100px 24px 80px;
  text-align: center;
  background: linear-gradient(rgba(20,20,30,0.55), rgba(20,20,30,0.65)),
              url('../hero-bg.jpg') center/cover no-repeat;
  color: white;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 18px;
  color: #f0f0f0;
  max-width: 600px;
  margin: 0 auto 24px;
}

.hero .cta-button {
  display: inline-block;
  background: #1a73e8;
  color: white;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(26,115,232,0.4);
}

/* ===== Demo sections ===== */
.demo-section-title {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 48px 24px 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #1a73e8;
  display: inline-block;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 24px 24px;
}

.demo-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.demo-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.demo-viewer {
  width: 100%;
  height: 340px;
  background: #e8e8e8;
  display: block;
}

.demo-caption {
  padding: 12px 16px;
  font-size: 14px;
}

.demo-caption strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

/* ===== AR helpers ===== */
.scale-warning {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  display: none;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.drag-hint {
  position: absolute;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
  z-index: 9999;
  pointer-events: none;
  max-width: 80%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.ar-button {
  background: #1a73e8;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
}

.desktop-qr-container {
  display: none;
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  padding: 16px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 10000;
}

.desktop-qr-container img {
  width: 130px;
  height: 130px;
  display: block;
  margin: 0 auto 8px;
}

.desktop-qr-container p {
  margin: 0;
  color: #333;
  font-size: 12px;
  max-width: 180px;
}

.size-buttons {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 9999;
}

.size-btn {
  padding: 8px 14px;
  border: 2px solid #1a73e8;
  background: white;
  color: #1a73e8;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

.size-btn.active {
  background: #1a73e8;
  color: white;
}

/* ===== Content sections ===== */
.how-it-works,
.why-us,
.contacts,
.problem-solution,
.limitations {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.why-us ul,
.problem-solution ul,
.limitations ul {
  padding-left: 20px;
}

.why-us li,
.problem-solution li,
.limitations li {
  margin-bottom: 10px;
}

/* ===== Legal ===== */
.legal-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 24px;
}

.legal-page h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.legal-page h2 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 10px;
  color: #1a1a2e;
}

.legal-page p {
  margin-bottom: 14px;
  line-height: 1.6;
}

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-page li {
  margin-bottom: 8px;
}

/* ===== Footer ===== */
.site-footer {
  background: #e0e0e0;
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: #666;
}

.site-footer a {
  color: #666;
  margin: 0 8px;
}

/* ===== Страница отдельной AR-модели ===== */
.page-header {
  text-align: center;
  padding: 16px 12px 8px;
  background: #fff;
}

.logo {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.product-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
  padding: 24px 16px 8px;
}

.hint {
  text-align: center;
  font-size: 14px;
  color: #666;
  padding: 12px 16px 4px;
}

.back-link {
  display: block;
  text-align: center;
  padding: 16px;
  color: #1a73e8;
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  text-decoration: underline;
}

.back-hint {
  text-align: center;
  font-size: 13px;
  color: #999;
  padding: 8px 16px;
}

/* На отдельной странице карточка без рамки и тени */
body:has(.page-header) .demo-card {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

body:has(.page-header) .demo-card:hover {
  transform: none;
  box-shadow: none;
}

/* ===== AR CTA-кнопка с иконкой ===== */
.ar-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1a73e8;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(26,115,232,0.4);
  transition: box-shadow 0.2s, transform 0.2s;
}

.ar-cta-button:hover {
  box-shadow: 0 6px 20px rgba(26,115,232,0.55);
  transform: translateY(-1px);
}

.ar-cta-button img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1); /* делает иконку белой, под цвет текста */
}

.platforms {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

.platform-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.platform-table th {
    background: #1a73e8;
    color: white;
    text-align: left;
    padding: 12px 16px;
}

.platform-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.platform-table tr:nth-child(even) {
    background: #f7f7f7;
}