/* OFFERS: finder and expanding photo panels */
.cats { background: var(--sky); overflow: clip; padding-block: clamp(64px, 5.4vw, 84px); }
.cats__head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px 56px; align-items: end; margin-bottom: clamp(28px, 3vw, 44px); }
.cats__intro { display: grid; gap: 18px; }
.finder { background: var(--paper); padding: 22px 24px 24px; border-radius: var(--r); box-shadow: 0 24px 50px -36px rgba(18, 26, 58, .45); }
.finder label { display: block; font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; }
.finder__row { display: flex; gap: 10px; }
.finder select {
  flex: 1 1 auto; min-width: 0; min-height: 54px; padding: 0 48px 0 16px; border: 2px solid var(--line); border-radius: var(--r-sm); background-color: var(--sky);
  appearance: none; -webkit-appearance: none; font-weight: 600; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121a3a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 18px;
}
.finder select:focus-visible { border-color: var(--blue); outline: none; }

.cats__panels { display: flex; gap: 12px; height: clamp(380px, 50vh, 520px); }
.cat {
  --c: var(--orange);
  position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r); overflow: hidden; background: var(--ink); color: var(--paper);
  transition: flex-grow .9s var(--ease);
}
.cat--blue { --c: var(--blue); } .cat--lime { --c: var(--lime); }
.cat.is-active { flex-grow: 4.4; }
.cat__media { position: absolute; inset: 0; }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; transition: filter .8s var(--ease); filter: saturate(.85) brightness(.82); }
.cat.is-active .cat__media img { filter: none; animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 26, 58, .9) 0%, rgba(18, 26, 58, .35) 42%, rgba(18, 26, 58, 0) 70%); pointer-events: none; z-index: 1; }
.cat__toggle { position: absolute; inset: 0; z-index: 3; width: 100%; border: 0; background: transparent; cursor: pointer; border-radius: inherit; }
.cat.is-active .cat__toggle { cursor: default; }
.cat__toggle:focus-visible { outline: 3px solid var(--lime); outline-offset: -6px; }
.cat__tab {
  position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl;
  font-family: var(--display); font-weight: 700; font-size: 1.3rem; white-space: nowrap; transition: opacity .4s var(--ease);
}
.cat__tab::after { content: ""; display: block; width: 12px; height: 12px; margin: 14px auto 0; border-radius: 50% 50% 50% 0; background: var(--c); transform: rotate(-45deg); }
.cat.is-active .cat__tab { opacity: 0; }
.cat__body { position: absolute; z-index: 2; left: clamp(22px, 2.4vw, 34px); bottom: clamp(22px, 2.4vw, 34px); width: 420px; opacity: 0; pointer-events: none; }
.cat.is-active .cat__body { opacity: 1; }
.cat__body h3 { font-size: clamp(1.7rem, 2.3vw, 2.15rem); margin: 14px 0 8px; }
.cat__body p { color: #e3e8f5; font-size: 1.05rem; line-height: 1.5; }
.cat__deal { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: .92rem; border-radius: var(--r-sm); }
.cat__deal i { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); }

.cats__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; }
.cats__foot p { font-weight: 600; font-size: 1.1rem; }

/* no JS: every panel open in a grid */
.no-js .cats__panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; }
.no-js .cat { height: 340px; }
.no-js .cat__body { opacity: 1; width: auto; right: 24px; }
.no-js .cat__tab { display: none; }

@media (max-width: 1100px) {
  .cats__head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .cats__panels { flex-direction: column; height: auto; gap: 10px; }
  .cat { flex: none; height: 76px; transition: height .8s var(--ease); }
  .cat.is-active { height: 380px; }
  .cat__body { width: calc(100% - 48px); }
  .cat__tab { writing-mode: horizontal-tb; transform: none; left: 22px; bottom: auto; top: 50%; margin-top: -.75em; font-size: 1.2rem; display: flex; align-items: center; gap: 12px; }
  .cat__tab::after { margin: 0; order: -1; }
  .cat::after { background: linear-gradient(to top, rgba(18, 26, 58, .9) 0%, rgba(18, 26, 58, .4) 55%, rgba(18, 26, 58, .25) 100%); }
  .finder__row { flex-direction: column; }
  .no-js .cats__panels { display: flex; }
  .no-js .cat { height: 340px; }
}
