:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #16212f;
  --muted: #5f6c7a;
  --brand: #0f7a8f;
  --brand-deep: #0b5d6e;
  --accent: #f5a524;
  --border: #dde3ec;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Manrope, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 10%, #e8f6fa, transparent 40%), var(--bg);
}

h1, h2, h3 {
  font-family: Montserrat, sans-serif;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(7px);
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand span {
  color: var(--brand);
}

nav {
  display: flex;
  gap: 16px;
  font-weight: 600;
}

.hero {
  padding: 56px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
}

.kicker {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
}

.lead {
  color: var(--muted);
  font-size: 1.06rem;
}

.cta-row {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 11px 18px;
  font-weight: 700;
  transition: .2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
}

.btn-ghost {
  border-color: var(--border);
  background: #fff;
}

.selling-points {
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.hero-card {
  background: #fff;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 35, 60, .11);
  position: relative;
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255,255,255,.92);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
}

.section {
  padding: 54px 0;
}

.section.alt {
  background: #eef2f8;
}

.section-head {
  margin-bottom: 20px;
  text-align: center;
}

.section-head.left {
  text-align: left;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.section-head p {
  color: var(--muted);
  margin: 8px 0 0;
}

.catalog-controls {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

#searchInput {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 13px;
  cursor: pointer;
  font-weight: 700;
}

.filter-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(17, 35, 66, .06);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-body {
  padding: 13px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .85rem;
  color: var(--muted);
}

.product-name {
  margin: 7px 0 5px;
  font-size: 1rem;
}

.product-price {
  margin: 0;
  color: var(--brand-deep);
  font-weight: 800;
}

.product-short {
  font-size: .92rem;
  color: var(--muted);
}

.product-card button {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--border);
  background: #f8fafc;
  padding: 11px;
  cursor: pointer;
  font-weight: 700;
}

.cards {
  display: grid;
  gap: 14px;
}

.cards.four {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.info-card,
.promo-card,
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.info-card p,
.promo-card p,
.testimonial p {
  color: var(--muted);
}

.promo-tag {
  font-size: .8rem;
  color: #fff;
  background: var(--accent);
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.testimonials {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.map-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 24, .65);
}

.modal-panel {
  position: relative;
  width: min(700px, 92vw);
  margin: 6vh auto;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  z-index: 31;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: #f1f4f9;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-panel img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
}

.modal-price {
  color: var(--brand-deep);
  font-weight: 800;
}

.admin-body {
  background: #eef4fa;
}

.admin-wrap {
  padding: 32px 0;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 16px;
}

.admin-form,
.admin-list-wrap {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
}

.admin-form {
  display: grid;
  gap: 10px;
}

.admin-form label {
  display: grid;
  gap: 5px;
  font-weight: 600;
  font-size: .92rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font-family: inherit;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--brand-deep);
  font-weight: 700;
}

.admin-list {
  display: grid;
  gap: 10px;
  max-height: 72vh;
  overflow: auto;
}

.admin-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

.admin-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.delete-btn {
  border: 0;
  background: #cf2d2d;
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

@media (max-width: 860px) {
  nav {
    display: none;
  }

  .hero-grid,
  .contact-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero-card img {
    min-height: 260px;
  }
}
