:root {
  --blue: #1477ff;
  --blue-dark: #0d3e78;
  --blue-soft: #eaf4ff;
  --ink: #132238;
  --muted: #66758a;
  --line: #dfe8f3;
  --surface: #ffffff;
  --background: #f5f9fd;
  --danger: #d94444;
  --shadow: 0 18px 50px rgba(26, 66, 112, .11);
  --radius: 20px;
  --header-height: 86px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--background); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.site-header { position: sticky; top: 0; z-index: 100; min-height: var(--header-height); padding: 14px clamp(20px, 4vw, 64px); display: grid; grid-template-columns: minmax(250px, 1fr) auto minmax(180px, 1fr); align-items: center; gap: 24px; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; justify-self: start; }
.brand-name { font-family: Georgia, serif; font-size: clamp(1.2rem, 2vw, 1.7rem); font-style: italic; font-weight: 700; }
.brand-product { color: var(--blue); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.5vw, 34px); font-weight: 700; justify-self: center; }
.main-nav a { padding: 10px 4px; }
.main-nav a:hover { color: var(--blue); }
.selection-link span { display: inline-grid; place-items: center; min-width: 25px; height: 25px; padding: 0 7px; border-radius: 999px; color: white; background: var(--blue); font-size: .78rem; }
.selection-preview-strip { justify-self: end; display: flex; align-items: center; justify-content: flex-end; min-width: 0; min-height: 38px; }
.selection-preview-strip.is-empty { visibility: hidden; }
.selection-preview-strip img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; border: 2px solid white; box-shadow: 0 3px 12px rgba(18, 52, 88, .16); margin-left: -7px; background: #dce8f4; }
.selection-preview-strip img:first-child { margin-left: 0; }
.selection-preview-more { display: inline-grid; place-items: center; min-width: 32px; height: 32px; margin-left: 5px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: white; font-size: .72rem; font-weight: 900; }
.page-shell { width: min(1500px, calc(100% - 32px)); min-height: calc(100vh - 230px); margin: 0 auto; padding: 34px 0 34px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 8px 0 34px; }
.page-heading.compact { margin-top: 4px; }
.page-heading h1, .simple-title h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.04em; }
.page-heading p { margin: 8px 0 0; color: var(--muted); max-width: 720px; }
.simple-title { margin: 0 0 28px; }
.back-link { position: fixed; top: calc(var(--header-height) + 10px); left: clamp(16px, 2.2vw, 34px); z-index: 90; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.98); box-shadow: 0 8px 24px rgba(21, 56, 94, .14); color: var(--blue-dark); font-weight: 850; backdrop-filter: blur(10px); }
.back-link:hover { color: var(--blue); }
.back-spacer { height: 48px; }
.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-grid { align-items: stretch; }
.content-card { overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); border: 1px solid rgba(214, 228, 242, .9); transition: transform .2s ease, box-shadow .2s ease; }
.content-card:hover { transform: translateY(-4px); box-shadow: 0 22px 60px rgba(26, 66, 112, .16); }
.content-card img { width: 100%; height: 255px; object-fit: cover; display: block; }
.content-card-body { display: flex; align-items: center; min-height: 78px; padding: 20px 22px; }
.content-card h2 { margin: 0; font-size: 1.45rem; }
.gallery-heading { padding-right: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; grid-auto-rows: 155px; gap: 14px; width: 100%; }
.photo-card { position: relative; overflow: hidden; border-radius: 16px; background: #dce8f4; box-shadow: 0 8px 25px rgba(20, 57, 95, .12); cursor: zoom-in; }
.photo-card.landscape { grid-column: span 2; grid-row: span 2; }
.photo-card.portrait { grid-column: span 1; grid-row: span 2; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.photo-card:hover img { transform: scale(1.025); }
.photo-number { position: absolute; top: 12px; left: 12px; padding: 7px 10px; border-radius: 9px; background: rgba(18, 34, 56, .78); color: white; font-weight: 900; font-size: .82rem; backdrop-filter: blur(6px); }
.select-photo { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; background: rgba(255,255,255,.96); color: var(--blue); font-size: 1.55rem; line-height: 1; font-weight: 900; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.select-photo.selected { background: var(--blue); color: white; }
.primary-button, .danger-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 900; }
.primary-button { color: white; background: var(--blue); }
.danger-button { color: var(--danger); background: white; border-color: #f2bcbc; }
.block { width: 100%; margin-top: 10px; }
.promo-footer { width: 100%; margin: 0; border-top: 1px solid var(--line); background: white; }
.promotions { width: 100%; padding: 0; background: white; }
.promo-viewport { width: 100%; margin: 0; overflow: hidden; border-radius: 0; }
.promo-track { display: flex; transition: transform .35s ease; }
.promo-card { flex: 0 0 100%; height: 64px; min-height: 64px; display: grid; grid-template-columns: 1fr; align-items: center; gap: 12px; padding: 5px clamp(20px, 4vw, 64px); background: white; }
.promo-card.has-image { grid-template-columns: 86px minmax(0, 1fr); }
.promo-card img { width: 86px; height: 52px; object-fit: cover; border-radius: 8px; }
.promo-copy { min-width: 0; }
.promo-card span { color: var(--blue); text-transform: uppercase; font-size: .62rem; letter-spacing: .12em; font-weight: 900; }
.promo-card h2 { margin: 1px 0 2px; font-size: 1rem; line-height: 1.1; }
.promo-card p { margin: 1px 0; color: var(--muted); font-size: .82rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-card a { color: var(--blue); font-size: .78rem; font-weight: 900; }
.selection-page-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.selection-page-card { overflow: hidden; border-radius: 18px; background: white; box-shadow: var(--shadow); }
.selection-page-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.selection-page-card div { display: flex; align-items: center; justify-content: space-between; padding: 15px; }
.selection-page-card button { border: 0; background: none; color: var(--danger); font-weight: 900; }
.empty-state { padding: 70px 24px; text-align: center; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price-card { padding: 30px; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.price-card.featured { outline: 3px solid var(--blue); }
.price-card strong { font-size: 2rem; color: var(--blue); }
.login-body { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(circle at top, #e8f5ff, #f7faff 55%); }
.login-main { flex: 1; display: grid; place-items: center; padding: 38px 24px; }
.login-card { width: min(440px, 100%); padding: 40px; border-radius: 26px; background: white; box-shadow: 0 28px 90px rgba(22, 62, 105, .18); }
.login-brand { font-family: Georgia, serif; font-style: italic; font-weight: 700; font-size: 1.8rem; }
.login-product { color: var(--blue); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; margin-bottom: 35px; }
.login-card h1 { font-size: 2rem; margin-bottom: 8px; }
.login-card p { color: var(--muted); }
.login-form { display: grid; gap: 12px; margin-top: 26px; }
.login-form label { font-weight: 800; }
.login-form input { width: 100%; min-height: 54px; padding: 12px 15px; border: 2px solid var(--line); border-radius: 12px; font-size: 1.2rem; }
.login-form input:focus { outline: 3px solid rgba(20,119,255,.18); border-color: var(--blue); }
.alert { padding: 12px; border-radius: 10px; color: #8c1e1e; background: #ffeaea; }
body.lightbox-open { overflow: hidden; }
.photo-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; padding: 18px; background: rgba(7, 17, 30, .94); backdrop-filter: blur(8px); }
.lightbox-stage { width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; }
.lightbox-stage img { display: block; max-width: calc(100vw - 36px); max-height: calc(100vh - 105px); width: auto; height: auto; object-fit: contain; box-shadow: 0 24px 80px rgba(0,0,0,.36); }
.lightbox-close { position: fixed; top: 18px; right: 22px; z-index: 1002; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(15,30,48,.78); color: white; font-size: 2rem; line-height: 1; }
.lightbox-bar { position: fixed; left: 50%; bottom: 14px; z-index: 1002; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; min-width: min(460px, calc(100vw - 30px)); justify-content: space-between; padding: 9px 10px 9px 18px; border-radius: 999px; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 14px 46px rgba(0,0,0,.28); }
.lightbox-select { min-height: 40px; padding: 8px 15px; border: 0; border-radius: 999px; background: var(--blue); color: white; font-weight: 900; }
.lightbox-select.selected { background: #0f5fc8; }
@media (max-width: 1100px) {
  .site-header { grid-template-columns: minmax(220px, 1fr) auto minmax(120px, 1fr); gap: 14px; }
  .selection-preview-strip img { width: 31px; height: 31px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .selection-page-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  :root { --header-height: 120px; }
  .site-header { display: grid; grid-template-columns: 1fr; align-items: start; min-height: var(--header-height); padding: 12px 18px; gap: 6px; }
  .brand { justify-self: start; }
  .main-nav { width: 100%; justify-self: stretch; justify-content: space-between; gap: 8px; font-size: .86rem; }
  .selection-preview-strip { display: none; }
  .page-shell { width: min(100% - 20px, 1500px); padding-top: 22px; }
  .back-link { top: calc(var(--header-height) + 8px); left: 12px; min-height: 38px; padding: 7px 12px; }
  .back-spacer { height: 46px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .card-grid, .price-grid { grid-template-columns: 1fr; }
  .content-card img { height: 220px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 9px; }
  .photo-card.landscape { grid-column: span 2; }
  .photo-card.portrait { grid-column: span 1; }
  .selection-page-grid { grid-template-columns: repeat(2, 1fr); }
  .promotions { padding: 0; }
  .promo-viewport { border-radius: 0; }
  .promo-card { height: 58px; min-height: 58px; padding: 4px 12px; }
  .promo-card.has-image { grid-template-columns: 72px minmax(0, 1fr); gap: 8px; }
  .promo-card img { width: 72px; height: 48px; }
  .promo-card h2 { font-size: .88rem; }
  .promo-card p { font-size: .72rem; }
  .promo-card a { font-size: .72rem; }
  .photo-lightbox { padding: 10px; }
  .lightbox-stage img { max-width: 100%; max-height: calc(100vh - 95px); }
  .lightbox-close { top: 10px; right: 10px; width: 42px; height: 42px; }
  .lightbox-bar { bottom: 8px; gap: 10px; padding-left: 14px; }
  .lightbox-select { font-size: .82rem; }
}
