:root {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --surface2: #f7f8fa;
  --text: #18181b;
  --muted: #71717a;
  --accent: #dc2626;
  --accent-dim: #b91c1c;
  --accent-soft: #fef2f2;
  --border: #e4e4e7;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 8px 30px rgba(15, 23, 42, 0.06);
  --success: #15803d;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}

.site-topbar {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-soft) 55%, #fff5f5 100%);
  border-bottom: 1px solid #fecaca;
}

.site-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  padding: 0.85rem 0;
  text-align: center;
}

.site-topbar-link {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-topbar-link:hover {
  color: var(--accent);
}

.site-topbar-phone {
  font-variant-numeric: tabular-nums;
}

.site-topbar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
  flex-shrink: 0;
}

.site-header-main {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.site-header-main .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .site-topbar-inner {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0;
  }

  .site-topbar-dot {
    display: none;
  }

  .site-header-main .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }
}

.logo {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.hero p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.badge-demo {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.hero-price-band {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
}

.price-current {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.price-old {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
}

.price-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.card-price {
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.card-price .price-current {
  font-size: 1.2rem;
}

.sales-strip {
  background: var(--accent-soft);
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
  color: #991b1b;
  text-align: center;
}

.sales-strip strong {
  color: var(--accent-dim);
}

.section-soft {
  background: var(--surface);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.product-gallery {
  margin-top: 0.5rem;
}

.gallery-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface2);
  box-shadow: var(--shadow-card);
}

.gallery-zoom {
  all: unset;
  cursor: zoom-in;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.gallery-zoom:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.gallery-zoom img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.gallery-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(transparent, rgba(24, 24, 27, 0.72));
  color: #fff;
  font-size: 0.82rem;
  text-align: center;
  pointer-events: none;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 0.75rem;
}

@media (max-width: 540px) {
  .gallery-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-thumb {
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface2);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.gallery-thumb:hover {
  border-color: #d4d4d8;
}

.gallery-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-out;
}

.lightbox-inner {
  max-width: min(96vw, 1200px);
  max-height: 92vh;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  z-index: 201;
}

.lightbox-close:hover {
  background: var(--surface2);
}

.cta-inline {
  margin-top: 1rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  padding-bottom: 4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: #fca5a5;
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.card-thumb {
  aspect-ratio: 4 / 3;
  background: var(--surface2);
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.1rem 1.25rem 1.35rem;
}

.card-body h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.card-body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dim);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: #a1a1aa;
  background: var(--surface2);
}

section {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.feature-list li strong {
  color: var(--text);
}

.product-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-height: 280px;
  overflow: hidden;
}

.product-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.form-section {
  background: linear-gradient(180deg, var(--surface2) 0%, var(--surface) 40%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.form-card {
  max-width: 520px;
  margin-inline: auto;
}

.form-card h2 {
  text-align: center;
}

.form-card .lead {
  text-align: center;
  margin-inline: auto;
}

form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

form textarea {
  min-height: 100px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.msg {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.msg.ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.msg.err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0.35rem 0;
  max-width: 36rem;
  margin-inline: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--text);
}

.admin-panel {
  padding: 2rem 0 4rem;
}

.admin-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-panel th,
.admin-panel td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-panel th {
  color: var(--muted);
  font-weight: 600;
}

.admin-panel .empty {
  color: var(--muted);
  padding: 2rem 0;
}
