/* Business formats directory */
.page-formats-premium {
  --formats-ink: #0b1634;
  --formats-blue: #2459dc;
  --formats-blue-strong: #173d9e;
  --formats-cyan: #22b8f0;
  --formats-line: #dce5f2;
}

.page-formats-premium .container {
  max-width: min(1420px, 100% - 24px);
}

.formats-page {
  display: grid;
  gap: clamp(42px, 5vw, 72px);
  margin-top: 18px;
  color: var(--formats-ink);
}

.formats-page h1,
.formats-page h2,
.formats-page h3,
.formats-page p { margin-top: 0; }

.formats-page h1 {
  max-width: 810px;
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.formats-page h2 {
  max-width: 900px;
  margin-bottom: 14px;
  color: var(--formats-ink);
  font-size: clamp(27px, 3.3vw, 43px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.formats-page h3 {
  color: var(--formats-ink);
  font-size: 18px;
  line-height: 1.2;
}

.formats-eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--formats-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.formats-eyebrow::before {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.formats-eyebrow--light { color: #91ddff; }

.formats-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(90, 133, 255, .3);
  border-radius: clamp(24px, 3vw, 38px);
  background:
    radial-gradient(720px 460px at 10% 8%, rgba(64, 136, 255, .4), transparent 62%),
    radial-gradient(620px 420px at 90% 5%, rgba(34, 211, 238, .2), transparent 64%),
    linear-gradient(135deg, #09142f 0%, #10265d 54%, #0a1739 100%);
  box-shadow: 0 34px 90px rgba(17, 45, 112, .24);
}

.formats-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(135deg, #000, transparent 72%);
  content: "";
}

.formats-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .8fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
  min-height: min(650px, calc(100vh - 135px));
  padding: clamp(32px, 4.5vw, 60px);
}

.formats-hero__lead {
  max-width: 700px;
  margin-bottom: 22px;
  color: rgba(238, 245, 255, .82);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
}

.formats-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.formats-page .formats-btn {
  min-height: 52px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
}

.formats-page .formats-btn--ghost {
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.1);
  color: #fff;
  box-shadow: none;
}

.formats-hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 25px;
}

.formats-hero__proof span {
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: rgba(255,255,255,.065);
  color: rgba(235, 243, 255, .78);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.formats-hero__mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  perspective: 1300px;
}

.formats-hero__tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px;
  background: #dce7f7;
  box-shadow: 0 24px 58px rgba(0, 8, 29, .35);
}

.formats-hero__tile:nth-child(2),
.formats-hero__tile:nth-child(3) { transform: translateY(22px); }

.formats-hero__tile img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  transition: opacity .26s ease, transform .5s cubic-bezier(.2,.75,.25,1);
}

.formats-hero__tile figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 14px 13px;
  background: linear-gradient(transparent, rgba(4, 17, 43, .9));
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  transition: opacity .22s ease, transform .34s ease;
}

.formats-hero__tile.is-changing img {
  opacity: 0;
  transform: scale(1.035);
}

.formats-hero__tile.is-changing figcaption {
  opacity: 0;
  transform: translateY(6px);
}

@media (prefers-reduced-motion: reduce) {
  .formats-hero__tile img,
  .formats-hero__tile figcaption { transition: none; }
}

.formats-heading { max-width: 930px; }
.formats-heading > p {
  max-width: 780px;
  margin-bottom: 0;
  color: #5d6b82;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
}

.formats-nav {
  position: sticky;
  top: 76px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 22px 0 28px;
  padding: 7px;
  border: 1px solid rgba(207, 220, 239, .86);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 34px rgba(19, 52, 104, .09);
  backdrop-filter: blur(16px);
}

.formats-nav button {
  appearance: none;
  padding: 10px 14px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #365078;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.formats-nav button:hover {
  background: #eaf1ff;
  color: var(--formats-blue);
}

.formats-nav button.is-active,
.formats-nav button[aria-pressed="true"] {
  background: linear-gradient(120deg, var(--formats-blue-strong), var(--formats-blue));
  color: #fff;
  box-shadow: 0 7px 18px rgba(36, 89, 220, .22);
}

.formats-nav button:focus-visible {
  outline: 3px solid rgba(34, 184, 240, .32);
  outline-offset: 2px;
}

.formats-nav__status {
  align-self: center;
  padding: 0 8px;
  color: #728097;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.formats-category[hidden] { display: none; }

.formats-category + .formats-category { margin-top: 34px; }
.formats-category__head {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 15px;
}
.formats-category__head h3 { margin-bottom: 3px; font-size: 21px; }
.formats-category__head p { margin-bottom: 0; color: #6b7890; font-size: 13px; }

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

.format-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--formats-line);
  border-radius: 21px;
  background: #fff;
  color: inherit !important;
  text-decoration: none;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.format-card:hover {
  border-color: rgba(36, 89, 220, .32);
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(24, 59, 124, .14);
}

.format-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e2eaf6;
}

.format-card__image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 20, 48, .18));
  content: "";
}

.format-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .38s ease;
}

.format-card:hover img { transform: scale(1.04); }

.format-card__body { padding: 16px 17px 18px; }
.format-card__body strong { display: block; margin-bottom: 6px; color: #14264b; font-size: 16px; }
.format-card__body span { display: block; color: #6a778d; font-size: 12px; line-height: 1.5; }
.format-card__arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #edf3ff;
  color: var(--formats-blue);
  font-size: 15px;
  font-weight: 900;
}

.formats-benefits {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  padding: clamp(32px, 4.5vw, 50px);
  border: 1px solid #dce6f5;
  border-radius: 30px;
  background: linear-gradient(145deg, #fff, #f3f7ff);
}

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

.formats-benefits > div:first-child > p {
  margin-bottom: 0;
  color: #647188;
  font-size: 15px;
  line-height: 1.65;
}

.formats-benefit {
  padding: 18px;
  border: 1px solid #e0e8f3;
  border-radius: 17px;
  background: rgba(255,255,255,.84);
}
.formats-benefit strong { display: block; margin-bottom: 5px; color: #18315d; font-size: 14px; }
.formats-benefit span { display: block; color: #67748a; font-size: 12px; line-height: 1.55; }

.formats-faq {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.formats-faq__list { display: grid; gap: 10px; }
.formats-faq details { padding: 0 18px; border: 1px solid #dde5f0; border-radius: 17px; background: #fff; }
.formats-faq summary { position: relative; padding: 17px 34px 17px 0; color: #172642; cursor: pointer; font-size: 15px; font-weight: 800; line-height: 1.45; list-style: none; }
.formats-faq summary::-webkit-details-marker { display: none; }
.formats-faq summary::after { position: absolute; top: 16px; right: 0; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #edf3ff; color: var(--formats-blue); content: "+"; }
.formats-faq details[open] summary::after { content: "−"; }
.formats-faq details p { margin: -1px 0 17px; color: #647188; font-size: 14px; line-height: 1.65; }

.formats-final {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 68px);
  border-radius: 32px;
  background: linear-gradient(120deg, #143e9b, #2465e8 60%, #1aa9df);
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 80px rgba(29, 78, 216, .25);
}
.formats-final h2 { max-width: 900px; margin-right: auto; margin-left: auto; color: #fff; }
.formats-final p { max-width: 720px; margin: 0 auto 24px; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.65; }
.formats-final .formats-actions { justify-content: center; }
.formats-final .formats-btn--light { border-color: #fff; background: #fff; color: #1747ad; }

.formats-city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: center;
  margin-top: -28px;
  padding: 22px;
  border: 1px solid var(--formats-line);
  border-radius: 22px;
  background: #fff;
  color: #5f6e84;
  font-size: 12px;
}

.formats-city-links strong { margin-right: 5px; color: #172642; }
.formats-city-links a { padding: 8px 10px; border-radius: 9px; background: #f0f5ff; color: #244eaf; font-weight: 800; text-decoration: none; }

@media (max-width: 1120px) {
  .formats-hero__layout { grid-template-columns: 1fr; min-height: 0; }
  .formats-hero__mosaic { width: min(850px, 100%); }
  .formats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .formats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formats-benefits,
  .formats-faq { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page-formats-premium .container { max-width: min(100% - 16px, 1420px); padding-right: 0; padding-left: 0; }
  .formats-page { gap: 42px; margin-top: 10px; }
  .formats-page h1 { font-size: clamp(31px, 10vw, 42px); }
  .formats-page h2 { font-size: clamp(26px, 7.8vw, 35px); }
  .formats-hero { border-radius: 24px; }
  .formats-hero__layout { padding: 28px 18px 36px; }
  .formats-hero__proof { grid-template-columns: 1fr; }
  .formats-hero__tile { min-height: 120px; border-radius: 16px; }
  .formats-hero__tile img { min-height: 120px; }
  .formats-actions .btn { width: 100%; }
  .formats-nav { position: static; width: 100%; }
  .formats-nav button { flex: 1 1 calc(50% - 4px); text-align: center; }
  .formats-nav__status { flex-basis: 100%; padding: 5px 4px 1px; text-align: center; }
  .formats-grid { grid-template-columns: 1fr; }
  .formats-benefits { grid-template-columns: 1fr; border-radius: 23px; }
  .formats-benefits__grid { grid-template-columns: 1fr; }
  .formats-final { border-radius: 24px; }
}
