:root {
  --navy: #071d31;
  --ink: #10263a;
  --muted: #637589;
  --line: #dbe5eb;
  --paper: #fff;
  --canvas: #f3f7f8;
  --accent: #f56f32;
  --accent-soft: #ffb087;
  --cyan: #4bc4c7;
  --green: #16764b;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(900px 480px at 100% 0, #e3eff1 0, transparent 64%), var(--canvas);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.offer-strip, .site-header, main, footer { max-width: 1180px; margin-inline: auto; }
.offer-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 7px;
  color: #6a7e8d;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.offer-strip span:first-child { color: #db5c27; }
.site-header {
  display: flex;
  align-items: center;
  min-height: 70px;
  gap: 36px;
  border-top: 1px solid rgba(13, 49, 71, .1);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-size: 17px; font-weight: 850; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: var(--navy); color: var(--accent-soft); font: 18px Georgia, serif; box-shadow: 0 5px 14px rgba(7, 29, 49, .17); }
.site-header nav { display: flex; gap: 28px; margin-left: auto; }
.site-header nav a { color: #526879; font-size: 14px; font-weight: 700; text-decoration: none; transition: color .2s ease; }
.site-header nav a:hover { color: var(--accent); }
.header-action { padding: 10px 13px; border-radius: 9px; color: var(--navy); background: #e2eef1; font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.header-action:hover { transform: translateY(-2px); background: #d5e7eb; }
main { min-height: calc(100vh - 190px); }
footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 30px; padding: 25px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-brand { color: var(--navy); font-size: 14px; }

.catalog-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(360px, 1.04fr);
  overflow: hidden;
  isolation: isolate;
  min-height: 510px;
  padding: clamp(42px, 6vw, 78px) clamp(31px, 5.7vw, 68px) 27px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(118deg, #071d31 0%, #0b2e48 52%, #0b334a 100%);
  box-shadow: 0 27px 64px rgba(5, 31, 50, .19);
}
.catalog-intro::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 36% 0, rgba(87, 207, 208, .18), transparent 31%), linear-gradient(90deg, rgba(7,29,49,.99) 11%, rgba(7,29,49,.83) 50%, rgba(7,29,49,.09) 92%); pointer-events: none; }
.catalog-intro::after { content: ""; position: absolute; z-index: -1; left: -130px; top: -310px; width: 540px; height: 540px; border: 1px solid rgba(255, 177, 135, .24); border-radius: 50%; box-shadow: 0 0 0 50px rgba(255, 177, 135, .035), 0 0 0 110px rgba(255, 177, 135, .025); animation: rings 12s ease-in-out infinite; }
.hero-copy { align-self: center; max-width: 585px; padding-bottom: 45px; animation: rise .8s both; }
.eyebrow { margin: 0 0 12px; color: #d95f2c; font-size: 11px; font-weight: 870; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.eyebrow.light { color: var(--accent-soft); }
.catalog-intro h1 { max-width: 630px; margin: 0; font-size: clamp(39px, 5vw, 65px); line-height: 1.01; letter-spacing: -.058em; }
.catalog-intro > .hero-copy > p:not(.eyebrow) { max-width: 520px; margin: 23px 0 0; color: #c8d9e4; font-size: 18px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin: 32px 0 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; border: 0; border-radius: 9px; padding: 12px 18px; color: #fff; background: var(--accent); box-shadow: 0 9px 20px rgba(245, 111, 50, .24); cursor: pointer; font: inherit; font-size: 14px; font-weight: 820; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { background: #df5921; box-shadow: 0 14px 26px rgba(245, 111, 50, .33); transform: translateY(-3px); }
.button.secondary { color: var(--navy); background: #e7f0f2; box-shadow: none; }
.button.secondary:hover { background: #d7e7ea; }
.hero-link { color: #fff; font-size: 14px; font-weight: 750; text-decoration: none; }
.hero-link span, .section-heading a span { margin-left: 7px; color: var(--accent-soft); font-size: 20px; vertical-align: -1px; }
.hero-visual { position: absolute; z-index: -2; inset: 0 0 0 38%; overflow: hidden; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #092237 0, rgba(9,34,55,.46) 26%, rgba(9,34,55,.02) 73%), linear-gradient(0deg, rgba(4,22,35,.31), transparent 36%); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 69% center; opacity: .94; transform: scale(1.05); animation: hero-breathe 9s ease-in-out infinite; }
.hero-proof { grid-column: 1 / -1; align-self: end; display: flex; flex-wrap: wrap; gap: 11px 27px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); color: #c9d9e3; font-size: 12px; font-weight: 650; animation: rise .8s .18s both; }

.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 58px 0 23px; }
.section-heading h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.section-heading > a { color: var(--navy); font-size: 14px; font-weight: 800; text-decoration: none; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 42px; }
.product-card { display: flex; flex-direction: column; position: relative; overflow: hidden; padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 5px 16px rgba(19,42,62,.035); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.product-card::before { content: ""; position: absolute; right: -27px; top: -29px; width: 105px; height: 105px; border-radius: 50%; background: radial-gradient(circle, rgba(75,196,199,.13), transparent 68%); transition: transform .35s ease; }
.product-card:hover { border-color: #cddfe4; box-shadow: 0 19px 35px rgba(19,42,62,.11); transform: translateY(-6px); }
.product-card:hover::before { transform: scale(1.45); }
.product-mark { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 11px; color: var(--navy); background: linear-gradient(135deg, #eaf4f5, #d7eaee); font-size: 18px; font-weight: 900; }
.product-mark.large { width: 94px; height: 94px; border-radius: 19px; font-size: 39px; }
.product-meta { margin-top: 17px; color: var(--muted); font-size: 11px; font-weight: 740; letter-spacing: .025em; }
.product-card h2 { margin: 9px 0; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
.product-card h2 a { color: var(--ink); text-decoration: none; }
.product-card p { flex-grow: 1; margin: 0; color: #5b6c7c; font-size: 14px; line-height: 1.55; }
.card-bottom { display: flex; align-items: baseline; gap: 7px; margin: 22px 0 15px; }
.card-bottom strong, .detail-price { font-size: 23px; letter-spacing: -.035em; }
.card-bottom span, .detail-price span { color: var(--muted); font-size: 13px; }

.catalog-heading { max-width: 720px; padding: 48px 0 29px; }
.catalog-heading h1 { margin: 0 0 12px; font-size: 44px; letter-spacing: -.05em; line-height: 1.04; }
.catalog-heading p:not(.eyebrow) { margin: 0; color: var(--muted); }
.back { display: inline-block; margin: 31px 0 0; color: #4b6475; font-size: 14px; font-weight: 700; text-decoration: none; }
.product-detail { display: grid; grid-template-columns: 150px minmax(0, 760px); gap: 38px; margin: 17px 0 46px; padding: 45px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 10px 26px rgba(19,42,62,.05); }
.product-detail h1 { margin: 0 0 15px; font-size: 44px; line-height: 1.08; letter-spacing: -.05em; }
.availability { display: inline-block; margin: 0; padding: 4px 9px; border-radius: 5px; color: var(--green); background: #e7f7ee; font-size: 13px; font-weight: 800; }
.detail-price { margin: 23px 0; font-weight: 850; }
.description { max-width: 650px; color: #4d6170; white-space: pre-line; }
.hint, .form-note, .small-muted { color: var(--muted); font-size: 12px; }
.login-panel, .admin-shell { max-width: 900px; margin: 64px auto; padding: 38px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 10px 26px rgba(19,42,62,.04); }
.login-panel { max-width: 450px; }
.login-panel form, label { display: grid; gap: 7px; }
.login-panel form { gap: 18px; margin-top: 26px; }
input, textarea { width: 100%; padding: 10px 11px; border: 1px solid #b9c8d2; border-radius: 7px; color: var(--ink); background: #fff; font: inherit; }
textarea { min-height: 86px; resize: vertical; }
.error { padding: 9px 12px; border-radius: 7px; color: #a43b1c; background: #fff0ea; font-size: 14px; }
.account-switch { display: inline-block; margin-top: 20px; color: var(--navy); font-size: 14px; font-weight: 750; }
.logout-form { margin-top: 22px; }
.cart-total { margin-top: 22px; font-size: 20px; font-weight: 850; }
.quantity-form { display: flex; gap: 7px; align-items: center; }
.quantity-form input { width: 72px; }
.text-button, .link-danger, .quiet { border: 0; padding: 0; background: transparent; color: #a34031; cursor: pointer; font: inherit; }
.text-button { color: var(--navy); font-weight: 700; }
.quiet { margin-top: 25px; color: #526270; }
.admin-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 26px; }
.admin-top h1, .admin-shell > h1 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 9px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
th { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.inline { display: inline; }
.form-shell { max-width: 760px; }
.form-shell form { display: grid; gap: 18px; margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@keyframes rise { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-breathe { 0%, 100% { transform: scale(1.05); } 50% { transform: scale(1.1); } }
@keyframes rings { 0%, 100% { transform: translate(0, 0) scale(1); opacity: .85; } 50% { transform: translate(18px, 12px) scale(1.05); opacity: 1; } }

@media (max-width: 760px) {
  body { background: var(--canvas); }
  .offer-strip { display: none; }
  .site-header { min-height: 69px; padding: 0 18px; gap: 13px; border-top: 0; }
  .brand { font-size: 15px; }
  .site-header nav { display: none; }
  .header-action { margin-left: auto; padding: 8px 10px; font-size: 12px; }
  main { padding: 0 18px; }
  footer { display: block; margin-inline: 18px; padding: 20px 0; }
  footer span { display: block; margin-bottom: 7px; }
  .catalog-intro { display: block; min-height: 610px; margin: 0 -18px; padding: 47px 25px 22px; border-radius: 0; box-shadow: none; }
  .catalog-intro::before { background: linear-gradient(180deg, rgba(7,29,49,.92) 0, rgba(7,29,49,.76) 52%, rgba(7,29,49,.94) 100%); }
  .catalog-intro::after { left: -220px; top: -290px; }
  .hero-copy { position: relative; z-index: 1; padding-bottom: 0; }
  .catalog-intro h1 { font-size: 40px; }
  .catalog-intro > .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; margin-top: 26px; }
  .hero-visual { left: 0; top: 195px; height: 305px; }
  .hero-visual::after { background: linear-gradient(180deg, rgba(7,29,49,.78), rgba(7,29,49,.03) 43%, rgba(7,29,49,.95) 100%); }
  .hero-visual img { object-position: 67% center; }
  .hero-proof { position: absolute; right: 25px; bottom: 21px; left: 25px; display: grid; gap: 8px; font-size: 11px; }
  .section-heading { margin: 38px 0 19px; }
  .section-heading h2 { font-size: 26px; }
  .products { grid-template-columns: 1fr; gap: 14px; }
  .product-card { padding: 20px; }
  .catalog-heading { padding: 36px 0 23px; }
  .catalog-heading h1 { font-size: 35px; }
  .product-detail { grid-template-columns: 1fr; gap: 20px; margin-bottom: 35px; padding: 25px; border-radius: 14px; }
  .product-detail h1 { font-size: 34px; }
  .login-panel, .admin-shell { margin: 30px 0; padding: 24px; }
  .admin-top { display: block; }
  .admin-top > div:last-child { margin-top: 16px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
