* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-title {
  font-family: var(--font-accent) !important;
  font-size: var(--type-page-title-size) !important;
  line-height: 1.08 !important;
  letter-spacing: var(--tracking-tight) !important;
}

.section-title {
  font-family: var(--font-accent) !important;
  font-size: var(--type-section-title-size) !important;
  line-height: 1.12 !important;
  letter-spacing: var(--tracking-tight) !important;
}

.page-lead {
  font-family: var(--font-base) !important;
  font-size: var(--type-lead-size) !important;
  line-height: 1.6 !important;
  color: var(--color-text-muted) !important;
}

.dark .page-title,
.dark .section-title,
.bg-black .page-title,
.bg-black .section-title,
.bg-brand-dark .page-title,
.bg-brand-dark .section-title,
[class*="bg-[#1A1D24]"] .page-title,
[class*="bg-[#1A1D24]"] .section-title {
  color: #ffffff !important;
}

.dark .page-lead,
.bg-black .page-lead,
.bg-brand-dark .page-lead,
[class*="bg-[#1A1D24]"] .page-lead {
  color: rgba(255, 255, 255, 0.82) !important;
}

.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  min-height: 5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
}

.site-header__logo {
  height: 2.5rem;
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-header__link {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}

.site-header__link:hover {
  color: var(--color-text-strong);
}

.site-header__link--active {
  color: var(--color-text-strong);
}

/* Header dropdowns */
.header-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding-bottom: 0.5rem;
  margin-bottom: -0.5rem;
}

.header-dropdown__toggle {
  display: none !important;
}

.header-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.75rem;
}

.header-dropdown__toggle::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}

.header-dropdown.is-open .header-dropdown__toggle {
  color: #1a1d24 !important;
}

.header-dropdown.is-open .header-dropdown__toggle::before {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.header-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 0;
  min-width: 14rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  background: #ffffff;
  box-shadow: 0 16px 28px -16px rgba(17, 24, 39, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast),
    visibility var(--transition-fast);
  z-index: 70;
}

.header-dropdown__label {
  cursor: default;
}

.header-dropdown.is-open .header-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-dropdown__menu a {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5563;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.header-dropdown__menu a:hover {
  background: #f9fafb;
  color: #1a1d24;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header__phone {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
}

.site-header__mobile {
  display: none;
}

.site-footer {
  background: var(--color-text-strong);
  color: var(--color-white);
}

/* Fallback for SOURCE-style footer markup using Tailwind utility classes */
#footer {
  background: #1a1d24 !important;
  color: #ffffff;
}

#footer a {
  color: inherit;
}

.site-footer__inner {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer__logo {
  height: 2.5rem;
  width: auto;
}

.site-footer__text {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.5;
}

.site-footer__title {
  margin: 0 0 1rem;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
  font-size: 0.75rem;
  color: #d1d5db;
}

.site-footer__list a:hover {
  color: var(--color-white);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.6875rem;
  color: #6b7280;
}

.site-footer__bottom a:hover {
  color: #d1d5db;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.875rem 1.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--color-text-strong);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #ffffff;
  color: #1a1d24;
  border-color: #1a1d24;
}

/* Unified button look across all pages (like header CTA) */
:where(
  button:not(.ui-modal__close):not(.header-mobile-toggle):not(.mobile-menu__close),
  input[type="submit"],
  .btn,
  a[class*="rounded-full"][class*="uppercase"],
  a[class*="rounded-xl"][class*="uppercase"]
) {
  background: #1a1d24 !important;
  color: #ffffff !important;
  border: 1px solid #1a1d24 !important;
}

/* Simple Series hero buttons: header-sized and inverse pair */
.project-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.625rem;
  padding: 0.75rem 1.5rem !important;
  border-radius: 999px !important;
  font-size: 0.625rem !important;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid #1a1d24 !important;
  transition: all var(--transition-base);
}

.project-hero__btn--primary {
  background: #1a1d24 !important;
  color: #ffffff !important;
}

.project-hero__btn--primary:hover {
  background: #ffffff !important;
  color: #1a1d24 !important;
}

.project-hero__btn--secondary {
  background: #ffffff !important;
  color: #1a1d24 !important;
}

.project-hero__btn--secondary:hover {
  background: #1a1d24 !important;
  color: #ffffff !important;
}

:where(
  button:not(.ui-modal__close):not(.header-mobile-toggle):not(.mobile-menu__close),
  input[type="submit"],
  .btn,
  a[class*="rounded-full"][class*="uppercase"],
  a[class*="rounded-xl"][class*="uppercase"]
):hover {
  background: #ffffff !important;
  color: #1a1d24 !important;
  border: 1px solid #1a1d24 !important;
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-text-strong);
  color: var(--color-text-strong);
}

.btn-secondary:hover {
  background: var(--color-text-strong);
  color: var(--color-white);
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  color: var(--color-text-strong);
  letter-spacing: var(--tracking-tight);
}

.breadcrumbs {
  color: var(--color-text-light);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-breadcrumbs {
  margin-top: 4rem;
  border-bottom: 1px solid var(--color-border);
  background: rgba(249, 250, 251, 0.5);
  overflow-x: clip;
}

.site-breadcrumbs__inner,
.site-breadcrumbs > .site-breadcrumbs__inner.container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100% !important;
  max-width: var(--container-max) !important;
  margin-inline: auto !important;
  padding: 1rem 1rem !important;
  box-sizing: border-box;
  color: #9ca3af;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-breadcrumbs__link,
.site-breadcrumbs__sep {
  white-space: nowrap;
}

.site-breadcrumbs__link:hover {
  color: var(--color-text-strong);
}

.site-breadcrumbs__sep {
  color: #d1d5db;
}

.site-breadcrumbs__current {
  color: var(--color-text-strong);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#header > div {
  gap: 0.75rem;
}

#header nav > a,
#header .header-dropdown > a,
#header .header-dropdown > .header-dropdown__label {
  position: relative;
  white-space: nowrap;
}

#header nav > a::after,
#header .header-dropdown > a::after,
#header .header-dropdown > .header-dropdown__label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 1px;
  background: #1a1d24;
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

#header nav > a:hover::after,
#header nav > a:focus-visible::after,
#header .header-dropdown > a:hover::after,
#header .header-dropdown > a:focus-visible::after,
#header .header-dropdown > .header-dropdown__label:hover::after,
#header .header-dropdown > .header-dropdown__label:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

#header .header-dropdown.is-open > a::after,
#header .header-dropdown.is-open > .header-dropdown__label::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Parent "Акустические кабины" is a non-clickable label: no link-like hover */
#header .header-dropdown > .header-dropdown__label {
  cursor: default;
}

#header .header-dropdown > .header-dropdown__label::after {
  display: none !important;
}

#header .header-dropdown > .header-dropdown__label:hover,
#header .header-dropdown > .header-dropdown__label:focus-visible {
  color: inherit !important;
}

#header a[href^="tel:"],
#header a[href^="mailto:"],
#header a[href*="wa.me"] {
  transition: color var(--transition-fast), opacity var(--transition-fast),
    transform var(--transition-fast);
}

#header a[href^="tel:"]:hover,
#header a[href^="mailto:"]:hover,
#header a[href*="wa.me"]:hover {
  color: #1a1d24 !important;
  opacity: 0.72;
}

#header a[href*="wa.me"] {
  opacity: 1;
}

#header a[href*="wa.me"]:hover {
  opacity: 1;
}

#header .hidden.lg\:flex.items-center.gap-6 > a[href^="tel:"]:hover {
  transform: translateY(-1px);
}

.header-mobile-toggle {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  background: transparent !important;
  color: #1a1d24 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.header-mobile-toggle:hover {
  border: none !important;
  background: transparent !important;
  color: #1a1d24 !important;
}

.header-mobile-toggle:focus-visible,
.mobile-menu__close:focus-visible {
  outline: 2px solid #cbd5e1;
  outline-offset: 2px;
}

.header-mobile-mail {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.42);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-menu.is-open .mobile-menu__backdrop {
  opacity: 1;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(92vw, 22rem);
  height: 100%;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  box-shadow: -12px 0 30px -22px rgba(15, 23, 42, 0.48);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eef2f7;
}

.mobile-menu__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
}

.mobile-menu__close {
  width: 2rem;
  height: 2rem;
  border: none !important;
  border-radius: 999px;
  background: #f3f4f6 !important;
  color: #1a1d24 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 !important;
}

.mobile-menu__close:hover {
  background: #e5e7eb !important;
}

.mobile-menu__nav {
  display: grid;
  gap: 0.15rem;
}

.mobile-menu__nav a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #374151;
  padding: 0.72rem 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  transition: color var(--transition-fast), background var(--transition-fast),
    border-color var(--transition-fast);
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a:focus-visible {
  color: #1a1d24;
  background: #f8fafc;
  border-color: #e5e7eb;
  outline: none;
}

.mobile-menu__group {
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #ffffff;
}

.mobile-menu__group-toggle {
  width: 100%;
  border: none !important;
  background: transparent !important;
  color: #374151 !important;
  padding: 0.72rem 0.65rem !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
}

.mobile-menu__group-toggle i {
  font-size: 0.8rem;
  color: #6b7280;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.mobile-menu__group.is-open .mobile-menu__group-toggle {
  background: #f8fafc !important;
  color: #1a1d24 !important;
}

.mobile-menu__group.is-open .mobile-menu__group-toggle i {
  transform: rotate(180deg);
  color: #1a1d24;
}

.mobile-menu__group-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
  border-top: 1px solid transparent;
  background: #f8fafc;
  display: grid;
}

.mobile-menu__group.is-open .mobile-menu__group-body {
  max-height: 24rem;
  border-top-color: #e5e7eb;
}

.mobile-menu__group-body a {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #4b5563;
  padding: 0.65rem 0.9rem 0.65rem 1.15rem;
  border-radius: 0 !important;
  border: 0 !important;
  border-left: 2px solid transparent !important;
  background: transparent !important;
}

.mobile-menu__group-body a:hover,
.mobile-menu__group-body a:focus-visible {
  color: #1a1d24;
  border-left-color: #1a1d24 !important;
  background: #ffffff !important;
  outline: none;
}

.mobile-menu__meta {
  margin-top: auto;
  display: grid;
  gap: 0.5rem;
  border-top: 1px solid #eef2f7;
  padding-top: 0.85rem;
}

.mobile-menu__meta a {
  font-size: 0.74rem;
  color: #4b5563;
}

@media (min-width: 1024px) and (max-width: 1380px) {
  #header nav.hidden.lg\:flex {
    gap: 0.52rem !important;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: center;
  }

  #header nav.hidden.lg\:flex > a,
  #header nav.hidden.lg\:flex .header-dropdown > a {
    font-size: 9px !important;
    letter-spacing: 0.095em !important;
  }

  #header .hidden.lg\:flex.items-center.gap-6 {
    gap: 0.8rem !important;
    flex-shrink: 0;
  }

  #header .hidden.lg\:flex.items-center.gap-6 > a {
    font-size: 11px;
    white-space: nowrap;
  }

  #header .hidden.lg\:flex.items-center.gap-6 > button {
    padding: 0.62rem 0.95rem !important;
    font-size: 9px !important;
  }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  #header .hidden.lg\:flex.items-center.gap-6 > a {
    display: none;
  }
}

@media (min-width: 768px) {
  .site-breadcrumbs {
    margin-top: 5rem;
  }

  .site-breadcrumbs__inner,
  .site-breadcrumbs > .site-breadcrumbs__inner.container {
    padding-inline: 1.5rem !important;
  }
}

/* Projects pagination: keep original compact light style */
.projects-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.projects-pagination__btn {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #e5e7eb !important;
  background: #ffffff !important;
  color: #1a1d24 !important;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast);
}

.projects-pagination__btn--arrow {
  color: #9ca3af !important;
}

.projects-pagination__btn--active {
  background: #1a1d24 !important;
  color: #ffffff !important;
  border-color: #1a1d24 !important;
}

.projects-pagination__btn:hover {
  background: #f9fafb !important;
  color: #1a1d24 !important;
  border-color: #d1d5db !important;
}

.projects-pagination__btn--active:hover {
  background: #111827 !important;
  color: #ffffff !important;
  border-color: #111827 !important;
}

/* Projects gallery hover and fullscreen preview */
.project-gallery > div {
  position: relative;
  cursor: zoom-in;
}

.project-gallery > div > img {
  transition: transform 0.55s ease !important;
}

.project-gallery > div:hover > img {
  transform: scale(1.06) !important;
}

.project-gallery > div > .absolute.inset-0 {
  display: none !important;
}

.project-gallery__open {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.56) !important;
  color: #ffffff !important;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast),
    background var(--transition-fast);
  z-index: 3;
}

.project-gallery > div:hover .project-gallery__open,
.project-gallery > div:focus-within .project-gallery__open {
  opacity: 1;
  transform: translateY(0);
}

.project-gallery__open:hover {
  background: rgba(17, 24, 39, 0.82) !important;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: 1fr auto;
  background: linear-gradient(
    160deg,
    rgba(17, 24, 39, 0.62) 0%,
    rgba(31, 41, 55, 0.5) 50%,
    rgba(17, 24, 39, 0.62) 100%
  );
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.project-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.project-lightbox__stage {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem 1.25rem;
}

.project-lightbox__image {
  max-width: min(92vw, 1200px);
  max-height: calc(100vh - 11rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -30px rgba(0, 0, 0, 0.9);
}

.project-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72) !important;
  color: #ffffff !important;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.project-lightbox__thumbs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 12, 18, 0.42);
}

.project-lightbox__thumb {
  flex: 0 0 auto;
  width: 5.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 0;
  background: transparent !important;
}

.project-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-lightbox__thumb.is-active {
  border-color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}

@media (max-width: 1023px) {
  .site-header__nav,
  .site-header__actions {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: auto 1fr;
  }

  .site-header__mobile {
    display: flex;
    justify-content: flex-end;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

:where(button, .btn, .ui-action, input[type="submit"]) {
  cursor: pointer;
}

:where(button, .btn, .ui-action, input[type="submit"]):focus-visible,
:where(a):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

:where(button, .btn, .ui-action, input[type="submit"]):active,
:where(button, .btn, .ui-action, input[type="submit"]).is-pressed {
  transform: translateY(1px) scale(0.99);
}

.ui-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(17, 24, 39, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.ui-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.ui-modal__dialog {
  width: min(100%, 34rem);
  border-radius: 1.5rem;
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  transform: translateY(8px) scale(0.98);
  transition: transform var(--transition-base);
}

.ui-modal.is-open .ui-modal__dialog {
  transform: translateY(0) scale(1);
}

.ui-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem;
}

.ui-modal__title {
  margin: 0;
  font-size: 1.125rem;
  font-family: var(--font-accent);
}

.ui-modal__close {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-text-strong);
}

.ui-modal__body {
  padding: 0 1.25rem 1.25rem;
}

.ui-modal__text {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.ui-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.form-success-state {
  margin-top: 0.75rem;
  border: 1px solid #d1fae5;
  background: #f0fdf4;
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
}

.form-success-state__text {
  margin: 0;
  color: #166534;
  font-size: 0.82rem;
  line-height: 1.45;
}

.partner-glass-icon {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.26) 0%,
    rgba(203, 213, 225, 0.2) 55%,
    rgba(255, 255, 255, 0.12) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 8px 18px -12px rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.series-compare-btn {
  background: #ffffff !important;
  color: #1a1d24 !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 16px 30px -20px rgba(255, 255, 255, 0.42);
}

.series-compare-btn:hover {
  background: transparent !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 12px 24px -20px rgba(255, 255, 255, 0.3);
}
