/*
 * Shared public-page surface.  The homepage has its own isolated redesign;
 * every other public page uses this layer as the common visual system.
 */
body:not(.homepage-refresh-page) {
  --studio-ink: #3b4173;
  --studio-muted: #69708d;
  --studio-accent: #c1492e;
  --studio-paper: #ffffff;
  --studio-line: rgba(59, 65, 115, .13);
  --studio-shadow: 0 14px 32px rgba(55, 61, 107, .08);
  background: #f8f8fb;
  color: var(--studio-ink);
}

body:not(.homepage-refresh-page) .content {
  background:
    radial-gradient(circle at 100% 0, rgba(226, 231, 245, .5), transparent 30rem),
    #f8f8fb;
}

body:not(.homepage-refresh-page) .content :is(h1, h2, h3, h4) {
  color: var(--studio-ink);
  letter-spacing: -.035em;
}

body:not(.homepage-refresh-page) .content h1 {
  font-weight: 800;
}

body:not(.homepage-refresh-page) .content h2 {
  font-weight: 800;
}

body:not(.homepage-refresh-page) .content :is(p, li) {
  color: var(--studio-muted);
}

body:not(.homepage-refresh-page) .content :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(193, 73, 46, .35);
  outline-offset: 3px;
}

body:not(.homepage-refresh-page) .content :is(.btn, .button, .button-main, .button-show-filter, .s-base__button, .form__button, .card-speaker__button) {
  border-radius: 12px;
  background: var(--studio-accent);
  box-shadow: 0 9px 20px rgba(193, 73, 46, .18);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body:not(.homepage-refresh-page) .content :is(.btn, .button, .button-main, .button-show-filter, .s-base__button, .form__button, .card-speaker__button):is(:hover, :focus-visible) {
  background: #a93c25;
  box-shadow: 0 13px 26px rgba(193, 73, 46, .24);
  transform: translateY(-2px);
}

/* Catalogue, pricing and portfolio cards share the same quiet outer surface. */
body:not(.homepage-refresh-page) .content :is(
  .card-price__in,
  .card-speaker,
  .card-video,
  .voice-card,
  .speaker-card,
  .article-card,
  .blog-card,
  .s-base__item,
  .s-base__card,
  .comment,
  .review,
  .service-card
) {
  overflow: hidden;
  border: 1px solid var(--studio-line);
  border-radius: 20px;
  background: var(--studio-paper);
  box-shadow: var(--studio-shadow);
}

body:not(.homepage-refresh-page) .content :is(.card-price__in, .card-speaker, .card-video, .voice-card, .speaker-card, .article-card, .blog-card, .s-base__item, .s-base__card, .service-card) {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body:not(.homepage-refresh-page) .content :is(.card-price__in, .card-speaker, .card-video, .voice-card, .speaker-card, .article-card, .blog-card, .s-base__item, .s-base__card, .service-card):is(:hover, :focus-within) {
  border-color: rgba(193, 73, 46, .44);
  box-shadow: 0 19px 38px rgba(55, 61, 107, .13);
  transform: translateY(-3px);
}

body:not(.homepage-refresh-page) .content :is(.card-price__title, .card-speaker__name, .card-video__title) {
  color: var(--studio-ink);
  font-weight: 800;
}

body:not(.homepage-refresh-page) .content :is(.card-price__total, .price-info__cost, .s-base__price, .card-speaker__price) {
  color: var(--studio-accent);
  font-weight: 800;
}

/* Tables and calculators should feel like a structured set of cards rather
   than a sheet of grid lines. */
body:not(.homepage-refresh-page) .content :is(table, .table, .price-table) {
  overflow: hidden;
  border: 1px solid var(--studio-line);
  border-radius: 18px;
  background: var(--studio-paper);
  box-shadow: var(--studio-shadow);
}

body:not(.homepage-refresh-page) .content :is(th, .table__head) {
  background: #f2f3f8;
  color: var(--studio-ink);
  font-weight: 800;
}

body:not(.homepage-refresh-page) .content :is(td, th) {
  border-color: var(--studio-line);
}

body:not(.homepage-refresh-page) .content :is(input, select, textarea) {
  border: 1px solid var(--studio-line);
  border-radius: 12px;
  background: #fff;
  color: var(--studio-ink);
  box-shadow: inset 0 1px 0 rgba(59, 65, 115, .04);
}

body:not(.homepage-refresh-page) .content :is(input, select, textarea):focus {
  border-color: rgba(193, 73, 46, .68);
  box-shadow: 0 0 0 4px rgba(193, 73, 46, .1);
}

body:not(.homepage-refresh-page) .content :is(.breadcrumbs, .breadcrumb, .page-breadcrumbs) {
  color: var(--studio-muted);
}

body:not(.homepage-refresh-page) .content :is(.breadcrumbs a, .breadcrumb a, .page-breadcrumbs a) {
  color: var(--studio-accent);
}

body:not(.homepage-refresh-page) .content :is(.pagination__link, .pagination li a, .pager li a) {
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: #fff;
  color: var(--studio-ink);
}

body:not(.homepage-refresh-page) .content :is(.pagination__link, .pagination li a, .pager li a):is(:hover, :focus-visible),
body:not(.homepage-refresh-page) .content :is(.pagination__item--active a, .pagination .active a, .pager .active a) {
  border-color: var(--studio-accent);
  background: var(--studio-accent);
  color: #fff;
}

/* Legacy catalogue cards are still used by the direct-contacts route. Give
   them the same contained card surface as the rest of the public catalogue. */
body:not(.homepage-refresh-page) .s-base .card {
  width: 200px;
  min-height: 300px;
  margin: 0;
}

body:not(.homepage-refresh-page) .s-base .card__wrapper {
  min-height: 300px;
  border: 1px solid var(--studio-line);
  border-radius: 20px;
  box-shadow: var(--studio-shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body:not(.homepage-refresh-page) .s-base .card__wrapper:is(:hover, :focus-within) {
  z-index: 2;
  border-color: rgba(193, 73, 46, .48);
  box-shadow: 0 18px 36px rgba(55, 61, 107, .16);
  transform: translateY(-3px);
}

body:not(.homepage-refresh-page) .s-base .card__name,
body:not(.homepage-refresh-page) .s-base .card__price,
body:not(.homepage-refresh-page) .s-base .card__descr {
  text-align: center;
}

/* Dialect routes use the older foreign-voice card partial.  Keep its special
   and regular cards visually identical, and let a profile link stay a normal
   in-site navigation instead of exposing the legacy hover arrow. */
body:not(.homepage-refresh-page) .s-base--foreigner-dialect .card__wrapper,
body:not(.homepage-refresh-page) .s-base--foreigner-dialect .card.featured .card__wrapper {
  top: auto;
  left: auto;
  background: #f4f4f6;
  box-shadow: 0 0 0 1px rgba(59, 65, 115, .1);
}

body:not(.homepage-refresh-page) .s-base--foreigner-dialect .card.featured .card__wrapper {
  box-shadow: 0 0 0 1px rgba(59, 65, 115, .1);
}

body:not(.homepage-refresh-page) .s-base--foreigner-dialect .card__name a {
  color: var(--studio-accent);
  text-decoration-color: rgba(193, 73, 46, .55);
}

body:not(.homepage-refresh-page) .s-base--foreigner-dialect .card__name a .svg-icon,
body:not(.homepage-refresh-page) .s-base--foreigner-dialect .card__wrapper:hover .card__name a .svg-icon {
  display: none;
}

body:not(.homepage-refresh-page) .s-base--foreigner-dialect .card__lang,
body:not(.homepage-refresh-page) .s-base--foreigner-dialect .card__price {
  color: var(--studio-ink);
}

@media (max-width: 700px) {
  body:not(.homepage-refresh-page) .content :is(
    .card-price__in,
    .card-speaker,
    .card-video,
    .voice-card,
    .speaker-card,
    .article-card,
    .blog-card,
    .s-base__item,
    .s-base__card,
    .service-card
  ) {
    border-radius: 16px;
  }
}
