:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #17231e;
  background: #f5f6f0;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

[hidden] {
  display: none !important;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #8ac39a;
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(20px, 5vw, 80px);
  border-bottom: 1px solid #dce4d9;
  background: #fafbf7;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.075em;
  white-space: nowrap;
}

.brand span {
  color: #617268;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}

.topbar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.topbar nav a:hover {
  color: #1d7e50;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.7fr);
  min-height: 330px;
  background: #173e2c;
  color: #f5f9ee;
}

.hero-copy {
  padding: clamp(46px, 6vw, 80px) clamp(20px, 6vw, 94px);
}

.hero-kicker {
  margin: 0 0 16px;
  color: #a8d8a2;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.hero-copy > p:not(.hero-kicker) {
  max-width: 540px;
  margin: 0 0 22px;
  color: #d5e5d7;
  font-size: 15px;
  line-height: 1.55;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  background: #c9edbe;
  color: #153c29;
  font-size: 14px;
  font-weight: 800;
}

.hero-link:hover {
  background: #e4f9d9;
}

.hero-guide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 42px clamp(20px, 5vw, 80px) 42px 0;
  padding: 2px 0 2px clamp(24px, 4vw, 60px);
  border-left: 1px solid #80b09162;
}

.hero-guide h2 {
  margin: 0 0 17px;
  color: #c9edbe;
  font-size: 15px;
  font-weight: 700;
}

.hero-guide ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: #e0ede1;
  font-size: 14px;
  line-height: 1.4;
}

.hero-guide li {
  padding-left: 4px;
}

.catalog-section,
.admin-section {
  max-width: 1500px;
  margin: auto;
  padding: clamp(45px, 5vw, 78px) clamp(20px, 5vw, 80px);
  scroll-margin-top: 80px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 18px;
}

.section-head h2,
.admin-head h2 {
  margin: 0;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.section-head p {
  max-width: 390px;
  margin: 0;
  color: #617268;
  font-size: 13px;
  line-height: 1.5;
}

#status {
  min-height: 20px;
  margin: 0 0 18px;
  color: #68776d;
  font-size: 12px;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-visual {
  aspect-ratio: 1.08;
  overflow: hidden;
  border: 1px solid #dce5d9;
  border-radius: 12px;
  background: #e9eee6;
}

.product-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-visual.no-photo {
  display: grid;
  place-items: center;
  color: #6a9476;
  font-size: 72px;
  font-weight: 900;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 2px 0;
}

.product-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.product-heading h3 {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.product-price {
  color: #194d32;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.product-description {
  margin: 10px 0 18px;
  color: #617268;
  font-size: 13px;
  line-height: 1.55;
}

.product-body label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
  color: #52695a;
  font-size: 12px;
  font-weight: 700;
}

.product-body select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #cad7cb;
  border-radius: 8px;
  background: #fafbf8;
  color: #193c29;
  font-size: 16px;
}

.product-body button,
.product-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #184d33;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

.product-body button:hover,
.product-form button:hover {
  background: #237245;
}

.product-feedback {
  min-height: 18px;
  margin: 8px 0 0;
  color: #1d6d43;
  font-size: 12px;
  line-height: 1.4;
}

.admin-section {
  border-top: 1px solid #dce5d9;
}

.admin-head {
  max-width: 650px;
  margin-bottom: 24px;
}

.admin-head p {
  margin: 12px 0 0;
  color: #617268;
  line-height: 1.6;
}

.product-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 850px;
}

.product-form label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
}

.product-form label.wide {
  grid-column: 1 / -1;
}

.product-form input,
.product-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cbd8cc;
  border-radius: 8px;
  background: #fff;
  color: #173e2c;
  font-size: 16px;
}

.product-form small {
  color: #6a776e;
  font-weight: 400;
}

.product-form button {
  min-width: 200px;
}

.product-form button:disabled {
  opacity: 0.55;
  cursor: wait;
}

#admin-status {
  min-height: 22px;
  color: #1d6d43;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 80px);
  border-top: 1px solid #dce5d9;
  color: #617268;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-guide {
    margin: 0 clamp(20px, 5vw, 80px) 36px;
    padding: 22px 0 0;
    border-top: 1px solid #80b09162;
    border-left: 0;
  }

  .hero-guide ol {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 64px;
  }

  .brand {
    font-size: 22px;
  }

  .brand span {
    display: none;
  }

  .topbar nav {
    gap: 14px;
  }

  .topbar nav a {
    font-size: 12px;
  }

  .hero-copy {
    padding: 42px 20px 28px;
  }

  .hero h1 {
    font-size: clamp(42px, 10vw, 54px);
  }

  .hero-guide {
    display: none;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .product-grid {
    gap: 24px 12px;
  }

  .product-visual {
    aspect-ratio: 0.93;
  }

  .product-heading {
    display: block;
  }

  .product-heading h3 {
    min-height: 43px;
  }

  .product-price {
    display: block;
    margin-top: 4px;
    font-size: 16px;
  }

  .product-description {
    font-size: 12px;
  }

  .product-body button {
    width: 100%;
    padding-inline: 8px;
    font-size: 12px;
  }

  .product-form {
    grid-template-columns: 1fr;
  }

  .product-form label.wide {
    grid-column: auto;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 350px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
