.object-attestation-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  min-width: 0;
  color: #102a24;
}

.object-attestation-hero,
.object-ticket-panel,
.object-catalog-section {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(190, 156, 83, .34);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(22, 45, 38, .08);
}

.object-attestation-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 16%, rgba(222, 190, 119, .28), transparent 32%),
    linear-gradient(135deg, #0b3b31, #155a48);
}

.object-attestation-eyebrow,
.object-ticket-number,
.object-catalog-heading > div > span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  color: #efd89f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.object-attestation-hero h2,
.object-ticket-panel h2,
.object-catalog-heading h2,
.object-card h3 {
  margin: 0;
  color: inherit;
}

.object-attestation-hero h2 {
  max-width: 760px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
}

.object-attestation-hero p {
  margin: 12px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 17px;
}

.object-attestation-total {
  display: grid;
  min-width: 122px;
  min-height: 122px;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(239, 216, 159, .5);
  border-radius: 50%;
  background: rgba(7, 45, 37, .54);
}

.object-attestation-total strong { color: #efd89f; font-size: 40px; line-height: 1; }
.object-attestation-total span { margin-top: 5px; color: rgba(255,255,255,.8); font-size: 13px; }

.object-ticket-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  min-height: 230px;
  padding: 26px;
  overflow: hidden;
  background: #f8f5ed;
}

.object-ticket-empty { padding: 12px 18px; }
.object-ticket-empty h2 { max-width: 720px; font-size: clamp(24px, 3vw, 38px); line-height: 1.12; }
.object-ticket-empty p { max-width: 660px; margin: 14px 0 0; color: #63746f; }

.object-ticket-result {
  min-width: 0;
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  background: #0d4035;
}

.object-ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.object-ticket-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  min-width: 0;
  min-height: 104px;
  overflow: hidden;
  border: 1px solid rgba(239,216,159,.22);
  border-radius: 16px;
  background: rgba(255,255,255,.07);
}

.object-ticket-item img { width: 84px; height: 100%; min-height: 104px; object-fit: cover; }
.object-ticket-item > div { min-width: 0; padding: 15px 14px; }
.object-ticket-item p { margin: 0 0 6px; color: #efd89f; font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.object-ticket-item h3 { margin: 0; color: #fff; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }

.object-ticket-draw {
  align-self: center;
  min-width: 230px;
  min-height: 54px;
  padding-inline: 22px;
  border-color: #0d4b3d;
  background: #0d4b3d;
}

.object-catalog-section { padding: 30px; background: #fff; }

.object-catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.object-catalog-heading > div > span { margin-bottom: 5px; color: #9a7432; }
.object-catalog-heading h2 { font-size: clamp(28px, 3vw, 40px); }
.object-catalog-heading p { margin: 0 0 4px; color: #6c7b76; }

.object-location-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
  padding: 7px;
  border-radius: 18px;
  background: #eef3f0;
}

.object-location-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 54px;
  padding: 10px 14px;
  color: #425a53;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
}

.object-location-tabs button:hover,
.object-location-tabs button:focus-visible { color: #0d4b3d; background: rgba(255,255,255,.68); }
.object-location-tabs button.is-active { color: #fff; border-color: #0d4b3d; background: #0d4b3d; box-shadow: 0 8px 18px rgba(13,75,61,.18); }
.object-location-tabs strong { flex: 0 0 auto; min-width: 28px; padding: 3px 7px; text-align: center; border-radius: 999px; background: rgba(255,255,255,.2); }

.object-catalog-groups,
.object-kind-group {
  display: grid;
  gap: 16px;
}

.object-catalog-groups { gap: 28px; }

.object-kind-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e1e8e4;
}

.object-kind-heading h3 {
  margin: 0;
  color: #123f34;
  font-size: 24px;
  line-height: 1;
}

.object-kind-heading span {
  min-width: 30px;
  padding: 4px 8px;
  color: #775b25;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  border-radius: 999px;
  background: #f1e5c8;
}

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

.object-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe4df;
  border-radius: 20px;
  background: #f8faf8;
  box-shadow: 0 8px 24px rgba(20, 47, 39, .06);
}

.object-card-image { aspect-ratio: 4 / 3; overflow: hidden; background: #dfe7e2; }
.object-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.object-card:hover img { transform: scale(1.025); }
.object-card h3 { min-height: 76px; padding: 18px; color: #173d33; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }

.object-attestation-state { padding: 28px; }

@media (max-width: 1180px) {
  .object-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .object-ticket-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1500px) {
  .object-location-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .object-attestation-page { gap: 16px; }
  .object-attestation-hero { align-items: flex-start; padding: 24px; border-radius: 22px; }
  .object-attestation-total { min-width: 86px; min-height: 86px; }
  .object-attestation-total strong { font-size: 30px; }
  .object-ticket-panel { padding: 18px; border-radius: 22px; }
  .object-ticket-result { padding: 18px; }
  .object-ticket-grid { grid-template-columns: 1fr; }
  .object-ticket-draw { width: 100%; }
  .object-catalog-section { padding: 20px; border-radius: 22px; }
  .object-location-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .object-location-tabs button { flex: 0 0 auto; min-width: 148px; scroll-snap-align: start; }
  .object-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .object-card h3 { min-height: 70px; padding: 14px; font-size: 15px; }
}

@media (max-width: 470px) {
  .object-attestation-hero { display: block; }
  .object-attestation-total { display: none; }
  .object-catalog-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .object-card-grid { grid-template-columns: 1fr; }
  .object-card-image { aspect-ratio: 16 / 10; }
  .object-card h3 { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .object-card img { transition: none; }
}
