:root {
  color-scheme: light;
  --ink: #17211e;
  --muted: #68746f;
  --green: #174c40;
  --green-dark: #0d342b;
  --green-soft: #e9f2ed;
  --cream: #f6f4ed;
  --line: #dce3de;
  --white: #fff;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.topbar { height: 76px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(23,76,64,.13); background: rgba(246,244,237,.92); }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; }
.brand strong { font-family: Georgia, serif; color: var(--green); font-size: 25px; letter-spacing: -.04em; }
.brand span, .secure-mark { color: var(--muted); font-size: 13px; }
main { min-height: calc(100vh - 130px); }
.hero { max-width: 1180px; margin: 0 auto; padding: 72px 24px 60px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .78fr); gap: 80px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
h1 { max-width: 680px; margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(42px, 5vw, 68px); line-height: 1.06; letter-spacing: -.045em; }
.lead { max-width: 650px; margin: 25px 0 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.principles { list-style: none; margin: 38px 0 0; padding: 0; display: grid; gap: 2px; }
.principles li { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid rgba(23,76,64,.13); }
.principles li > span { color: #a0713b; font-family: Georgia, serif; font-size: 14px; }
.principles div { display: grid; gap: 4px; }
.principles small { color: var(--muted); }
.account-card { min-height: 490px; padding: 34px; border: 1px solid rgba(23,76,64,.14); border-radius: 22px; background: rgba(255,255,255,.93); box-shadow: 0 24px 70px rgba(19,52,43,.09); }
.state { min-height: 420px; display: grid; place-items: center; color: var(--muted); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--green-soft); }
.tabs button { padding: 11px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; }
.tabs button.active { color: white; background: var(--green); }
.tabs button:disabled { cursor: not-allowed; opacity: .48; }
.form-heading { padding: 28px 0 20px; }
.form-heading h2, .profile-title h2, .section-title h2 { margin: 0; font-size: 28px; letter-spacing: -.025em; }
.form-heading > p:last-child, .profile-title p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
form { display: grid; gap: 15px; }
.password-form { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.password-form > div { display: grid; gap: 4px; }
.password-form small { color: var(--muted); font-weight: 400; }
label { display: grid; gap: 7px; color: #4f5b57; font-size: 13px; font-weight: 700; }
input, textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--ink); background: white; }
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,76,64,.1); }
textarea { resize: vertical; }
.agreement { grid-template-columns: auto 1fr; align-items: center; font-weight: 500; }
.agreement input { width: 17px; height: 17px; }
.primary, .secondary { min-height: 47px; border-radius: 10px; cursor: pointer; font-weight: 750; }
.primary { border: 0; color: white; background: var(--green); }
.primary:hover { background: var(--green-dark); }
.primary:disabled { cursor: wait; opacity: .55; }
.secondary { width: 100%; border: 1px solid var(--line); color: var(--green); background: white; }
#logout-button { margin-top: 13px; }
.error, .success, .note { margin: 0; padding: 11px 12px; border-radius: 8px; font-size: 13px; line-height: 1.55; }
.error { color: #9b3129; background: #fff0ee; }
.success { color: #176544; background: #eaf7ef; }
.note { color: #745527; background: #faf3df; }
.profile-title { display: flex; align-items: center; gap: 15px; margin: 2px 0 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.avatar { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--green); font-family: Georgia, serif; font-size: 22px; }
.products { max-width: 1180px; margin: 0 auto; padding: 55px 24px 80px; border-top: 1px solid rgba(23,76,64,.13); }
.section-title { margin-bottom: 28px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-card { min-height: 180px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); text-decoration: none; background: rgba(255,255,255,.72); transition: transform .2s, border-color .2s; }
.product-card:hover { transform: translateY(-3px); border-color: rgba(23,76,64,.42); }
.product-card span { color: #a0713b; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.product-card h3 { margin: 19px 0 8px; font-size: 19px; }
.product-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.product-card strong { margin-top: auto; padding-top: 20px; color: var(--green); font-size: 13px; }
footer { padding: 20px 24px 30px; color: var(--muted); text-align: center; font-size: 12px; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 42px; padding-top: 48px; }
  .account-card { min-height: auto; }
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .topbar { height: 66px; padding-inline: 18px; }
  .secure-mark { display: none; }
  .hero { padding: 38px 18px 42px; }
  h1 { font-size: 39px; }
  .lead { font-size: 15px; }
  .account-card { padding: 24px 19px; border-radius: 17px; }
  .products { padding: 42px 18px 60px; }
}
