:root {
  --bg: #f3f6f7;
  --ink: #102129;
  --muted: #657782;
  --line: #d6e0e3;
  --teal: #0f7a7d;
  --teal-dark: #0b5358;
  --gold: #c7a24d;
  --surface: #ffffff;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

button,
.button,
.outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #adc6ca;
  border-radius: 7px;
  padding: 8px 13px;
  color: #172b34;
  background: #ffffff;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}

button.primary,
.button.primary {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 14px 28px rgba(15, 122, 125, 0.24);
}

input,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  outline: none;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 250, 250, 0.93);
  border-bottom: 1px solid rgba(177, 196, 199, 0.78);
  backdrop-filter: blur(14px);
}

.brand,
.nav nav,
.account {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand,
.nav a {
  color: inherit;
  text-decoration: none;
}

.brand span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal);
  font-weight: 900;
}

.nav nav {
  gap: clamp(12px, 3vw, 28px);
  color: #52646e;
  font-weight: 760;
}

.hero {
  min-height: min(760px, calc(100vh - 65px));
  display: grid;
  place-items: center;
  padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 70px);
  text-align: center;
  color: #ffffff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, #09161a 0%, #10282a 45%, #17362f 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

.hero-inner {
  max-width: 880px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1;
}

.hero p {
  max-width: 720px;
  margin: 22px auto 0;
  color: #d2dcdd;
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions,
.actions,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  justify-content: center;
  margin-top: 30px;
}

.section {
  padding: clamp(42px, 6vw, 74px) clamp(18px, 5vw, 70px);
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.filters button.active {
  color: #ffffff;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.products {
  background:
    linear-gradient(rgba(15, 72, 75, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 72, 75, 0.035) 1px, transparent 1px),
    #ffffff;
  background-size: 34px 34px, 34px 34px, auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.product-card,
.login-panel,
.admin-form,
.admin-table,
.service-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(18, 37, 42, 0.09);
}

.product-card {
  overflow: hidden;
}

.product-media {
  height: 184px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(17, 89, 92, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 89, 92, 0.045) 1px, transparent 1px),
    #eef4f3;
  background-size: 18px 18px, 18px 18px, auto;
  border-bottom: 1px solid var(--line);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  filter: drop-shadow(0 12px 18px rgba(31, 52, 61, 0.16));
}

.product-info {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.product-info span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.product-info h3 {
  margin: 0;
  font-size: 16px;
}

.product-info p,
.service-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.price-row strong {
  color: #9b6412;
  font-size: 20px;
}

.price-row small {
  color: var(--muted);
}

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: #eaf1ef;
}

.service-item {
  min-height: 166px;
  padding: 20px;
  box-shadow: inset 0 3px 0 var(--teal), 0 12px 24px rgba(18, 37, 42, 0.07);
}

.service-item h3 {
  margin: 0 0 10px;
}

.entry {
  display: grid;
  place-items: center;
  background: #f8fafb;
}

.login-panel {
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
}

.login-panel h2,
.admin-form h3,
.admin-table h3 {
  margin: 0;
}

.message {
  min-height: 22px;
  color: #24664c;
}

.message.error {
  color: #b02a1f;
}

.admin {
  background: #ffffff;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 16px;
}

.admin-form,
.admin-table {
  padding: 18px;
}

.admin-empty {
  display: grid;
  justify-items: start;
  gap: 12px;
  max-width: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(18, 37, 42, 0.08);
}

.admin-empty h3 {
  margin: 0;
  font-size: 22px;
}

.admin-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.admin-row:last-child {
  border-bottom: 0;
}

.admin-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.fatal {
  padding: 30px;
  color: #b02a1f;
}

@media (max-width: 980px) {
  .product-grid,
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid,
  .section-title {
    grid-template-columns: 1fr;
  }

  .section-title {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: stretch;
    flex-direction: column;
  }

  .nav nav {
    overflow-x: auto;
  }

  .hero h1 {
    font-size: 44px;
  }

  .product-grid,
  .services,
  .admin-row {
    grid-template-columns: 1fr;
  }
}
