:root {
  --navy: #0d1b2a;
  --navy-2: #14283c;
  --gold: #d4a017;
  --amber: #c28a2e;
  --brown: #5a3a13;
  --cream: #f5f1e6;
  --cream-2: #fbf8ef;
  --paper: #ffffff;
  --line: #dfd2bb;
  --muted: #70685d;
  --success: #3f8b52;
  --warning: #df8628;
  --danger: #b94b45;
  --info: #356f9d;
  --shadow: 0 16px 40px rgba(13, 27, 42, 0.12);
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--cream);
  color: var(--navy);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 241, 230, 0.82) 340px),
    var(--cream);
  color: var(--navy);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

.site-shell {
  width: min(100% - 24px, 1240px);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 8px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  margin: 12px 0 22px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(13, 27, 42, 0.09);
  backdrop-filter: blur(12px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f8f4e9 url("/assets/brand/logo-mark.png") center / 145% auto no-repeat;
  box-shadow: inset 0 0 0 1px rgba(13, 27, 42, 0.08);
}

.brand-mark.small {
  width: 42px;
  height: 42px;
}

.brand-text,
.footer-brand div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-text strong,
.footer-brand strong {
  font-weight: 950;
  line-height: 1.05;
}

.brand-text span,
.footer-brand span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.site-nav a {
  padding: 12px 13px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #f3ead5;
  outline: none;
}

.phone-pill,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.phone-pill:hover,
.button:hover {
  filter: brightness(0.96);
}

.button.secondary {
  background: transparent;
  border-color: var(--success);
  color: var(--success);
}

.button.dark {
  background: var(--navy);
  color: #fff;
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}

.icon-button {
  width: 42px;
  height: 40px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
}

.icon-button span {
  width: 18px;
  height: 2px;
  background: var(--navy);
  display: block;
  margin: 3px 0;
}

.loading-state {
  min-height: 48vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.loading-state img {
  width: 96px;
  margin-bottom: 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(34px, 6vw, 66px) clamp(24px, 5vw, 56px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.91), rgba(255, 255, 255, 0.72));
}

.eyebrow,
.hero-brand {
  margin: 0 0 12px;
  color: var(--amber);
  font-weight: 900;
  letter-spacing: 0;
}

.eyebrow {
  text-transform: uppercase;
}

.hero-brand {
  font-size: 17px;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  margin: 0;
  font-size: 56px;
  max-width: 680px;
}

h2 {
  margin: 0 0 10px;
  font-size: 40px;
}

h3 {
  margin: 0;
  font-size: 28px;
}

.hero-copy p {
  max-width: 580px;
  margin: 18px 0 0;
  font-size: 19px;
  line-height: 1.38;
  color: var(--brown);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-media {
  min-height: 390px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.quick-facts article {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.quick-facts span {
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.quick-facts strong {
  line-height: 1.2;
}

.section {
  padding: 46px 0 0;
}

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

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.product-card,
.review-card,
.contact-panel,
.order-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.08);
}

.product-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 220px 1fr;
}

.product-image {
  position: relative;
  overflow: hidden;
  background: #efe7d9;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.status.success { background: var(--success); }
.status.warning { background: var(--warning); }
.status.danger { background: var(--danger); }
.status.info { background: var(--info); }
.status.neutral { background: #6a6259; }

.product-image .status {
  position: absolute;
  top: 12px;
  left: 12px;
}

.product-body {
  display: grid;
  gap: 11px;
  padding: 18px;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

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

.price {
  font-size: 24px;
  font-weight: 900;
  color: var(--brown);
  white-space: nowrap;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dark-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 30px;
  align-items: center;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}

.dark-band p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.42;
  font-size: 17px;
}

.trait-list,
.rules-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.trait-list li {
  position: relative;
  min-height: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  line-height: 1.3;
}

.trait-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
}

.dark-band img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-2);
}

.info-panel p,
.info-panel li {
  color: var(--muted);
  line-height: 1.45;
}

.info-panel ul {
  padding-left: 22px;
}

.registry-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(212, 160, 23, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.registry-card img {
  width: 92px;
  height: 92px;
  object-fit: cover;
}

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

.gallery-item {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: brightness(0.96);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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

.review-card {
  padding: 22px;
}

.review-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.order-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 24px;
  padding: 26px;
}

.order-copy p {
  color: var(--muted);
  line-height: 1.5;
}

.order-rules {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.order-rules li {
  position: relative;
  padding-left: 22px;
  color: var(--brown);
}

.order-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.check-field {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--navy);
}

.field textarea {
  resize: vertical;
  min-height: 92px;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-field input {
  margin-top: 3px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 30px;
  color: var(--muted);
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.footer-contacts .button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100% - 24px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  margin: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(13, 27, 42, 0.62);
  backdrop-filter: blur(3px);
}

.modal-body {
  position: relative;
  max-height: min(84vh, 900px);
  overflow: auto;
  padding: 30px;
  border-radius: 8px;
  background: var(--paper);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.lightbox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1000px, calc(100% - 24px));
  max-height: min(92vh, 900px);
  border: 0;
  border-radius: 8px;
  padding: 18px;
  margin: 0;
  background: #101820;
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(13, 27, 42, 0.78);
  backdrop-filter: blur(3px);
}

.lightbox img {
  width: 100%;
  max-height: calc(92vh - 92px);
  object-fit: contain;
  border-radius: 6px;
}

.lightbox p {
  min-height: 20px;
  margin: 12px 48px 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 26px;
}

.detail-media {
  display: grid;
  gap: 12px;
}

.detail-media img:first-child {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  border-radius: 8px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.thumb-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.spec-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.45fr) 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.spec-row dt {
  color: var(--muted);
  font-weight: 800;
}

.spec-row dd {
  margin: 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(420px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.error-box {
  padding: 20px;
  border: 1px solid rgba(185, 75, 69, 0.4);
  border-radius: 8px;
  background: rgba(185, 75, 69, 0.09);
  color: var(--danger);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .brand {
    max-width: min(72vw, 420px);
  }

  .mobile-menu-button {
    display: grid;
  }

  .site-nav,
  .phone-pill {
    display: none;
  }

  .site-nav.open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 4px;
  }

  .site-nav.open a {
    border-top: 1px solid var(--line);
    border-radius: 0;
  }

  .hero,
  .dark-band,
  .order-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    order: 1;
  }

  .hero-media {
    order: 2;
    min-height: 260px;
  }

  h1 {
    font-size: 42px;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .product-detail,
  .contact-panel,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-shell {
    width: min(100% - 16px, 1240px);
  }

  .topbar {
    top: 0;
    min-height: 64px;
    margin: 6px 0 14px;
    padding: 7px 8px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .brand-text span {
    font-size: 11px;
    line-height: 1.08;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .icon-button span {
    width: 16px;
    margin: 2px 0;
  }

  .site-nav.open a {
    padding: 9px 4px;
    font-size: 14px;
    text-align: center;
  }

  h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  h2 {
    font-size: 28px;
    line-height: 1.05;
  }

  h3 {
    font-size: 22px;
  }

  .hero-copy,
  .dark-band,
  .order-panel,
  .info-panel,
  .contact-panel {
    padding: 18px;
  }

  .hero-copy p {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.34;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 22px;
  }

  .hero-media {
    min-height: 210px;
  }

  .button,
  .phone-pill {
    min-height: 40px;
    padding: 0 15px;
  }

  .quick-facts {
    gap: 8px;
    margin-top: 10px;
  }

  .quick-facts article {
    padding: 11px 13px;
  }

  .section {
    padding-top: 30px;
  }

  .section-head {
    display: block;
  }

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

  .product-card {
    grid-template-rows: 168px 1fr;
  }

  .product-body {
    gap: 9px;
    padding: 14px;
  }

  .price {
    font-size: 22px;
  }

  .price-row {
    display: grid;
    gap: 10px;
  }

  .card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .button,
  .order-form .button {
    width: 100%;
  }

  .footer {
    display: grid;
    gap: 12px;
    padding: 24px 0;
  }

  .footer-contacts {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .brand-text span {
    display: none;
  }

  .topbar {
    min-height: 60px;
  }

  h1 {
    font-size: 32px;
  }
}
