:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --blue: #007aff;
  --blue-dark: #0062cc;
  --green: #34c759;
  --red: #ff3b30;
  --orange: #ff9500;
  --float-surface: rgba(255, 255, 255, 0.68);
  --float-line: rgba(255, 255, 255, 0.72);
  --float-stroke: rgba(198, 198, 206, 0.42);
  --liquid-surface: rgba(255, 255, 255, 0.36);
  --liquid-surface-strong: rgba(255, 255, 255, 0.56);
  --liquid-stroke: rgba(255, 255, 255, 0.88);
  --liquid-edge: rgba(255, 255, 255, 0.96);
  --liquid-blue: rgba(0, 122, 255, 0.24);
  --liquid-green: rgba(52, 199, 89, 0.18);
  --shadow: 0 22px 70px rgba(29, 29, 31, 0.09), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  --shadow-hover: 0 34px 96px rgba(29, 29, 31, 0.16), 0 1px 0 rgba(255, 255, 255, 0.92) inset;
  --shadow-soft: 0 14px 42px rgba(29, 29, 31, 0.07), 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  --radius: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0, rgba(245, 245, 247, 0.82) 280px, var(--bg) 680px),
    linear-gradient(118deg, rgba(0, 122, 255, 0.08), transparent 34%, rgba(52, 199, 89, 0.07) 70%, transparent),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0 1px, transparent 1px 54px);
  color: var(--text);
  overflow-x: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.28);
  outline-offset: 3px;
}

.app-shell {
  position: relative;
  min-height: 100vh;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 13%, rgba(0, 122, 255, 0.18) 13% 14%, transparent 15% 44%, rgba(52, 199, 89, 0.15) 45% 46%, transparent 47%),
    linear-gradient(64deg, transparent 0 28%, rgba(0, 199, 190, 0.12) 29% 31%, transparent 32% 68%, rgba(255, 149, 0, 0.1) 69% 70%, transparent 71%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 72px);
  opacity: 0.88;
}

.site-header,
main,
.mobile-nav,
.mobile-consult {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(220px, 480px) 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 16px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(245, 245, 247, 0.48));
  -webkit-backdrop-filter: blur(30px) saturate(1.52);
  backdrop-filter: blur(30px) saturate(1.52);
  transition: padding 260ms var(--spring), background 260ms var(--spring), box-shadow 260ms var(--spring), border-color 260ms var(--spring);
}

.site-header.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  border-color: rgba(210, 210, 216, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(251, 251, 253, 0.58));
  box-shadow: 0 18px 54px rgba(29, 29, 31, 0.1), 0 1px 0 rgba(255, 255, 255, 0.84) inset;
}

.brand,
.desktop-nav,
.mobile-nav,
.search-shell,
.hero-actions,
.section-heading,
.catalog-meta,
.contact-item,
.admin-heading,
.back-button,
.compact-card,
.summary-strip {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0;
  white-space: nowrap;
  transition: transform 220ms var(--spring);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 122, 255, 0.18);
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms var(--spring);
}

.brand:hover .brand-mark img {
  transform: scale(1.06);
}

.search-shell {
  gap: 8px;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(229, 229, 234, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  transition: transform 220ms var(--spring), border-color 220ms var(--spring), box-shadow 220ms var(--spring), background 220ms var(--spring);
}

.search-shell:focus-within {
  transform: translateY(-1px);
  border-color: rgba(0, 122, 255, 0.36);
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 122, 255, 0.11);
}

.search-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.desktop-nav {
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.desktop-nav a,
.mobile-nav a {
  position: relative;
  transition: color 160ms var(--ease), transform 160ms var(--ease);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms var(--spring);
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--blue);
}

.desktop-nav a:hover {
  transform: translateY(-1px);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.admin-link {
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  transition: transform 180ms var(--spring), background 180ms var(--spring);
}

.menu-button:hover {
  transform: translateY(-1px);
  background: #f2f2f7;
}

.mobile-nav {
  display: flex;
  position: fixed;
  top: 73px;
  left: 16px;
  right: 16px;
  z-index: 21;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 220ms var(--spring), transform 220ms var(--spring);
}

.mobile-nav.open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mobile-nav a {
  padding: 12px;
  border-radius: 12px;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 96px;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: pageIn 420ms var(--spring);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 28px;
  align-items: stretch;
  min-height: 350px;
}

.hero.slim {
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 310px;
}

.hero-copy,
.hero-stage,
.ad-banner,
.section-block,
.catalog-header,
.filter-panel,
.contact-layout,
.admin-shell,
.contact-card,
.detail-top {
  border-radius: var(--radius);
}

.hero-copy,
.contact-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--float-stroke);
  background: var(--float-surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.18);
}

.hero-copy::after,
.contact-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -38% 42%;
  height: 54%;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(52, 199, 89, 0.08));
  transform: rotate(-10deg);
  pointer-events: none;
}

.hero-copy h1,
.catalog-header h1,
.contact-layout h1,
.admin-main h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero.slim h1 {
  font-size: clamp(34px, 4vw, 56px);
}

.hero-subtitle,
.catalog-header p,
.contact-layout p {
  max-width: 610px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button,
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  transition: transform 180ms var(--spring), background 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--spring);
}

.primary-button {
  padding: 0 18px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.secondary-button,
.ghost-button,
.back-button {
  padding: 0 18px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
}

.ghost-button {
  border: 1px solid rgba(0, 122, 255, 0.22);
}

.text-button {
  padding: 0;
  background: transparent;
  color: var(--blue);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.back-button:hover {
  transform: translateY(-2px);
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.back-button:active,
.text-button:active,
.chip:active,
.segmented button:active {
  transform: scale(0.97);
}

.primary-button:hover {
  background: var(--blue-dark);
}

.hero-stage {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--float-stroke);
  box-shadow: var(--shadow);
  isolation: isolate;
  --pointer-x: 0;
  --pointer-y: 0;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(0, 122, 255, 0.12), transparent 28%),
    radial-gradient(circle at 88% 86%, rgba(52, 199, 89, 0.1), transparent 30%);
  transform: translate(calc(var(--pointer-x) * 16px), calc(var(--pointer-y) * 16px));
  transition: transform 500ms var(--spring);
}

.hero-stage::after {
  display: none;
}

.hero-phone {
  position: absolute;
  z-index: 1;
  width: 214px;
  min-height: 370px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px);
  transition: transform 420ms var(--spring), box-shadow 420ms var(--spring);
  will-change: transform;
}

.hero-phone:first-child {
  left: 58px;
  top: 36px;
  transform: translate(calc(var(--pointer-x) * -12px), calc(var(--pointer-y) * -10px)) rotate(-7deg);
  animation: floatPhoneA 6.8s var(--spring) infinite;
}

.hero-phone:last-child {
  right: 58px;
  top: 72px;
  transform: translate(calc(var(--pointer-x) * 12px), calc(var(--pointer-y) * 10px)) rotate(8deg);
  animation: floatPhoneB 7.4s var(--spring) infinite;
}

.hero-phone:hover {
  animation-play-state: paused;
  box-shadow: 0 34px 88px rgba(0, 0, 0, 0.4);
}

.phone-screen {
  min-height: 346px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
}

.mock-header {
  height: 90px;
  padding: 18px;
  color: #fff;
}

.mock-header.blue {
  background: linear-gradient(135deg, #007aff, #39a6ff);
}

.mock-header.green {
  background: linear-gradient(135deg, #1fb66c, #8bd96f);
}

.mock-lines {
  padding: 16px;
}

.mock-line {
  height: 10px;
  margin-bottom: 10px;
  border-radius: 99px;
  background: #e8e8ed;
}

.mock-line.short {
  width: 58%;
}

.mock-tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 16px;
}

.mock-tile {
  aspect-ratio: 1;
  border-radius: 14px;
  background: #f5f5f7;
  animation: tilePulse 3.2s var(--ease) infinite;
}

.mock-tile:nth-child(2) {
  animation-delay: 220ms;
}

.mock-tile:nth-child(3) {
  animation-delay: 420ms;
}

.mock-tile:nth-child(4) {
  animation-delay: 640ms;
}

.hero-finder {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  height: 100%;
}

.finder-head,
.finder-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.finder-head h2 {
  margin: 0;
  font-size: 24px;
}

.finder-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.finder-metrics div {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(229, 229, 234, 0.76);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.finder-metrics span,
.finder-project small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.finder-metrics strong {
  overflow: hidden;
  color: var(--text);
  font-size: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finder-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.finder-actions button {
  min-height: 38px;
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  font-weight: 800;
  transition: transform 180ms var(--spring), background 180ms var(--ease);
}

.finder-actions button:hover {
  transform: translateY(-1px);
  background: rgba(0, 122, 255, 0.13);
}

.finder-list {
  display: grid;
  gap: 8px;
}

.finder-project {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(229, 229, 234, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  padding: 8px;
  text-align: left;
  transition: transform 180ms var(--spring), box-shadow 180ms var(--spring);
}

.finder-project:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(29, 29, 31, 0.08);
}

.finder-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--art-a), var(--art-b));
}

.finder-icon.has-icon {
  background: #fff;
}

.finder-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.finder-project span:nth-child(2) {
  display: grid;
  flex: 1;
  min-width: 0;
}

.finder-project strong,
.finder-project small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finder-project em {
  flex: 0 0 auto;
  color: var(--text);
  font-style: normal;
  font-weight: 850;
}

.finder-empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
}

.ad-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 28px 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(29, 29, 31, 0.96), rgba(22, 24, 29, 0.92)),
    var(--text);
  color: #fff;
  box-shadow: 0 24px 70px rgba(29, 29, 31, 0.18);
}

.ad-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.13) 48%, transparent 62%);
  transform: translateX(-100%);
  transition: transform 700ms var(--spring);
}

.ad-banner:hover::before {
  transform: translateX(100%);
}

.ad-banner h2,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0;
}

.ad-banner p {
  color: rgba(255, 255, 255, 0.72);
}

.section-block {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--float-stroke);
  background: var(--float-surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.16);
  transition: transform 300ms var(--spring), box-shadow 300ms var(--spring), border-color 220ms var(--ease);
}

.section-block:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 122, 255, 0.2);
  box-shadow: var(--shadow-hover);
}

.section-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading a {
  color: var(--blue);
  font-weight: 700;
}

.featured-row,
.project-grid,
.ad-slot-grid,
.home-ad-grid,
.metric-grid,
.ad-management-grid {
  display: grid;
  gap: 18px;
}

.featured-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card,
.featured-card,
.compact-card,
.ad-slot-card,
.metric-card,
.contact-panel,
.filter-panel,
.catalog-header,
.admin-main,
.admin-sidebar {
  border: 1px solid var(--float-stroke);
  background: var(--float-surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(1.14);
}

.project-card,
.featured-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 20px;
  transform: translateZ(0);
  box-shadow: var(--shadow-soft);
  transition: transform 320ms var(--spring), box-shadow 320ms var(--spring), border-color 220ms var(--ease), background 220ms var(--ease);
  will-change: transform;
}

.project-card::before,
.featured-card::before,
.compact-card::before,
.ad-slot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), transparent 36%, rgba(0, 122, 255, 0.08));
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--spring);
}

.project-card:hover,
.featured-card:hover,
.compact-card:hover,
.ad-slot-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 122, 255, 0.28);
  box-shadow: var(--shadow-hover);
  background: rgba(255, 255, 255, 0.92);
}

.project-card:hover::before,
.featured-card:hover::before,
.compact-card:hover::before,
.ad-slot-card:hover::before {
  opacity: 1;
}

.project-card:active,
.featured-card:active,
.compact-card:active,
.ad-slot-card:active {
  transform: translateY(-2px) scale(0.99);
}

.cover-art {
  position: relative;
  display: grid;
  min-height: 220px;
  overflow: hidden;
  place-items: center;
  color: #fff;
  background: #20242c;
  border-bottom: 1px solid rgba(229, 229, 234, 0.34);
}

.cover-art.landscape {
  min-height: 150px;
}

.cover-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--art-a), var(--art-b)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent);
  transition: transform 520ms var(--spring), filter 520ms var(--spring);
}

.cover-art::after {
  content: "";
  position: absolute;
  width: 62%;
  height: 70%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 22px;
  background:
    linear-gradient(#fff 0 0) 18px 22px / 54% 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.55) 0 0) 18px 40px / 72% 7px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.25) 0 0) 18px 66px / 46% 44px no-repeat,
    rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
  transition: transform 420ms var(--spring), opacity 420ms var(--spring);
}

.cover-art.has-icon::after {
  width: 108px;
  height: 108px;
  border: 0;
  border-radius: 24px;
  background: #fff;
}

.cover-icon {
  position: relative;
  z-index: 1;
  width: 108px;
  height: 108px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.22);
  transition: transform 420ms var(--spring), box-shadow 420ms var(--spring);
}

.project-card:hover .cover-art::before,
.featured-card:hover .cover-art::before {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.project-card:hover .cover-art::after,
.featured-card:hover .cover-art::after {
  transform: translateY(-6px) scale(1.02);
}

.project-card:hover .cover-icon,
.featured-card:hover .cover-icon {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.cover-art span {
  position: relative;
  z-index: 2;
  align-self: end;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 760;
}

.card-body {
  position: relative;
  z-index: 3;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.55);
  backdrop-filter: blur(18px) saturate(1.55);
}

.card-body h3,
.compact-card h3,
.ad-slot-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
}

.card-body p,
.compact-card p,
.ad-slot-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.price {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}

.tag-row,
.chip-row,
.screenshot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row {
  margin-top: 12px;
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f2f2f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: transform 180ms var(--spring), background 180ms var(--ease), color 180ms var(--ease);
}

.badge.blue,
.chip.active {
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
}

.badge.green {
  background: rgba(52, 199, 89, 0.12);
  color: #168a3a;
}

.badge.red {
  background: rgba(255, 59, 48, 0.12);
  color: var(--red);
}

.badge.orange {
  background: rgba(255, 149, 0, 0.14);
  color: #b96800;
}

.segmented {
  display: flex;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(229, 229, 234, 0.72);
  background: rgba(242, 242, 247, 0.68);
  scrollbar-width: none;
}

.segmented::-webkit-scrollbar {
  display: none;
}

.segmented button,
.chip {
  border: 0;
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--spring), box-shadow 180ms var(--spring);
}

.segmented button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: 0 8px 26px rgba(29, 29, 31, 0.11);
  animation: softPop 240ms var(--spring);
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  transition: transform 300ms var(--spring), box-shadow 300ms var(--spring), border-color 220ms var(--ease), background 220ms var(--ease);
}

.compact-thumb {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--art-a), var(--art-b));
  transition: transform 300ms var(--spring);
}

.compact-card:hover .compact-thumb {
  transform: scale(1.05);
}

.compact-thumb.has-icon {
  background: #fff;
}

.compact-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-info {
  flex: 1;
  min-width: 0;
}

.compact-actions {
  text-align: right;
}

.catalog-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 36px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.16);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr auto;
  gap: 20px;
  margin-top: 20px;
  padding: 20px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.filter-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.chip {
  cursor: pointer;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(29, 29, 31, 0.08);
}

.select-control,
.settings-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  outline: 0;
}

.catalog-meta {
  justify-content: space-between;
  margin: 18px 4px;
  color: var(--muted);
}

.catalog-grid {
  transition: opacity 220ms var(--ease), transform 220ms var(--spring), filter 220ms var(--ease);
}

.catalog-grid.updating {
  opacity: 0.3;
  transform: translateY(4px);
  filter: blur(2px);
}

.back-button {
  gap: 6px;
  margin-bottom: 18px;
}

.detail-top {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--float-stroke);
  background: var(--float-surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.16);
}

.detail-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 46%, rgba(0, 122, 255, 0.06));
  pointer-events: none;
}

.detail-icon {
  position: relative;
  z-index: 1;
  width: 180px;
  height: 180px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--art-a), var(--art-b));
  box-shadow: 0 24px 66px rgba(29, 29, 31, 0.16);
  animation: iconSettle 520ms var(--spring) both;
}

.detail-icon.has-icon {
  background: #fff;
}

.detail-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-title h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
}

.detail-title p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 18px;
}

.summary-strip {
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--float-stroke);
  border-radius: 18px;
  background: var(--float-surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(1.12);
}

.summary-item {
  min-width: 120px;
  text-align: center;
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary-item strong {
  display: block;
  margin-top: 5px;
}

.detail-section {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--float-stroke);
  border-radius: 20px;
  background: var(--float-surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(1.12);
  transition: transform 260ms var(--spring), box-shadow 260ms var(--spring), border-color 220ms var(--ease);
}

.detail-section:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 122, 255, 0.18);
  box-shadow: var(--shadow);
}

.detail-section h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-section p,
.detail-section li {
  color: var(--muted);
  line-height: 1.75;
}

.screenshot-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.screenshot-card {
  position: relative;
  flex: 0 0 260px;
  min-height: 560px;
  margin: 0;
  scroll-snap-align: start;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--art-a), var(--art-b));
  box-shadow: 0 24px 74px rgba(29, 29, 31, 0.15);
  overflow: hidden;
  transition: transform 340ms var(--spring), box-shadow 340ms var(--spring), filter 340ms var(--spring);
}

.screenshot-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  background:
    linear-gradient(#fff 0 0) 22px 24px / 54% 10px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.64) 0 0) 22px 48px / 72% 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.34) 0 0) 22px 86px / 62% 120px no-repeat,
    rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  transition: transform 360ms var(--spring);
}

.screenshot-card.has-image {
  background: #f5f5f7;
}

.screenshot-card.has-image::after {
  display: none;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.screenshot-card:hover {
  transform: translateY(-8px);
  filter: saturate(1.06);
  box-shadow: var(--shadow-hover);
}

.screenshot-card:hover::after {
  transform: translateY(-4px);
}

.screenshot-card.landscape {
  flex-basis: 520px;
  min-height: 240px;
}

.ad-slot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.home-ad-strip {
  margin-top: 28px;
}

.home-ad-strip .ad-slot-card,
.home-ad-strip .ad-slot-link {
  display: block;
}

.home-ad-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ads-hero-slot {
  margin-top: 24px;
}

.placement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.placement-grid article {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(229, 229, 234, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.placement-grid strong {
  color: var(--text);
}

.placement-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.ad-slot-card,
.metric-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 22px;
  border-radius: 20px;
  transition: transform 300ms var(--spring), box-shadow 300ms var(--spring), border-color 220ms var(--ease), background 220ms var(--ease);
}

.ad-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ad-ratio, 2 / 1);
  margin-bottom: 18px;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(29, 29, 31, 0.08);
  background:
    linear-gradient(135deg, rgba(0, 122, 255, 0.12), rgba(52, 199, 89, 0.1)),
    repeating-linear-gradient(90deg, #fff 0 34px, #f2f2f7 34px 68px);
  transition: transform 300ms var(--spring), box-shadow 300ms var(--spring);
}

.ad-visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  transform: translateY(8px);
  transition: transform 280ms var(--spring);
}

.ad-slot-card:hover .ad-visual::after {
  transform: translateY(0);
}

.ad-slot-card:hover .ad-visual {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 122, 255, 0.13);
}

.ad-slot-link {
  color: inherit;
  text-decoration: none;
}

.ad-image {
  display: block;
  width: 100%;
  aspect-ratio: var(--ad-ratio, 2 / 1);
  margin-bottom: 18px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 14px 36px rgba(29, 29, 31, 0.1);
  transition: transform 300ms var(--spring), box-shadow 300ms var(--spring);
}

.ad-slot-card.is-display-ad {
  padding: 12px;
}

.ad-slot-card.is-display-ad .ad-image {
  margin-bottom: 0;
  border-radius: 14px;
}

.compact-ad .ad-image,
.compact-ad .ad-visual {
  min-height: 150px;
  max-height: 240px;
}

.ad-content {
  display: grid;
  gap: 8px;
}

.ad-slot-card:hover .ad-image {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 22px 54px rgba(0, 122, 255, 0.16);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  padding: 42px;
  border: 1px solid var(--float-stroke);
  background: var(--float-surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.16);
}

.contact-panel {
  padding: 18px;
  border: 1px solid var(--float-stroke);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft);
}

.contact-item {
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 14px;
  transition: background 180ms var(--ease), transform 180ms var(--spring);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.74);
  transform: translateX(4px);
  box-shadow: 0 12px 30px rgba(29, 29, 31, 0.07);
}

.contact-item:last-of-type {
  border-bottom: 0;
}

.contact-item p {
  margin: 4px 0 0;
  font-size: 15px;
}

.qr-card {
  margin-top: 12px;
}

.qr-card img {
  display: block;
  width: calc(100% - 24px);
  max-width: 260px;
  aspect-ratio: 1;
  margin: 12px auto;
  border: 1px solid rgba(229, 229, 234, 0.76);
  border-radius: 22px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 18px 48px rgba(29, 29, 31, 0.11);
}

.contact-telegram-button {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
}

.hero-copy,
.contact-card,
.section-block,
.catalog-header,
.filter-panel,
.project-card,
.featured-card,
.compact-card,
.ad-slot-card,
.detail-top,
.summary-strip,
.detail-section,
.contact-layout,
.contact-panel {
  border-color: var(--liquid-stroke);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.2) 48%, rgba(255, 255, 255, 0.68)),
    linear-gradient(135deg, var(--liquid-blue), rgba(255, 255, 255, 0.08) 34%, var(--liquid-green)),
    var(--liquid-surface);
  box-shadow:
    0 34px 108px rgba(29, 29, 31, 0.15),
    0 1px 0 var(--liquid-edge) inset,
    0 -1px 0 rgba(255, 255, 255, 0.58) inset,
    24px 0 58px rgba(0, 122, 255, 0.085) inset,
    -24px 0 58px rgba(52, 199, 89, 0.075) inset;
  -webkit-backdrop-filter: blur(48px) saturate(2.1) contrast(1.08) brightness(1.04);
  backdrop-filter: blur(48px) saturate(2.1) contrast(1.08) brightness(1.04);
}

.project-card,
.featured-card,
.compact-card,
.ad-slot-card,
.detail-section,
.section-block,
.contact-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.18) 58%, rgba(255, 255, 255, 0.62)),
    linear-gradient(135deg, rgba(0, 122, 255, 0.16), transparent 44%, rgba(52, 199, 89, 0.12)),
    var(--liquid-surface);
}

.project-card::after,
.featured-card::after,
.compact-card::after,
.ad-slot-card::after,
.detail-section::before,
.section-block::before,
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 2;
  border-radius: inherit;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.86), transparent 21%, transparent 58%, rgba(255, 255, 255, 0.44)),
    linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.13), transparent);
  opacity: 0.62;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 320ms var(--spring), transform 320ms var(--spring);
}

.section-block,
.detail-section,
.contact-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-block > *,
.detail-section > *,
.contact-panel > *,
.compact-card > *,
.ad-slot-card > * {
  position: relative;
  z-index: 3;
}

.project-card:hover,
.featured-card:hover,
.compact-card:hover,
.ad-slot-card:hover,
.detail-section:hover,
.section-block:hover {
  border-color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.3) 54%, rgba(255, 255, 255, 0.78)),
    linear-gradient(135deg, rgba(0, 122, 255, 0.21), transparent 44%, rgba(52, 199, 89, 0.16)),
    var(--liquid-surface-strong);
  box-shadow:
    0 46px 140px rgba(29, 29, 31, 0.2),
    0 1px 0 #fff inset,
    0 -1px 0 rgba(255, 255, 255, 0.5) inset,
    30px 0 64px rgba(0, 122, 255, 0.1) inset,
    -30px 0 64px rgba(52, 199, 89, 0.09) inset;
}

.project-card:hover::after,
.featured-card:hover::after,
.compact-card:hover::after,
.ad-slot-card:hover::after,
.detail-section:hover::before,
.section-block:hover::before,
.contact-panel:hover::before {
  opacity: 0.72;
  transform: translateX(10px);
}

.cover-art {
  border-color: rgba(255, 255, 255, 0.5);
}

.cover-art::after,
.screenshot-card::after,
.ad-visual::after {
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow:
    0 26px 74px rgba(29, 29, 31, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  -webkit-backdrop-filter: blur(26px) saturate(1.9) contrast(1.06);
  backdrop-filter: blur(26px) saturate(1.9) contrast(1.06);
}

.primary-button {
  background: linear-gradient(135deg, #007aff, #38a6ff 56%, #34c759);
  box-shadow: 0 14px 34px rgba(0, 122, 255, 0.26), 0 1px 0 rgba(255, 255, 255, 0.38) inset;
}

.secondary-button,
.ghost-button,
.back-button,
.segmented,
.chip,
.badge {
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
}

.secondary-button,
.ghost-button,
.back-button {
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 28px rgba(29, 29, 31, 0.08), 0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.search-shell {
  border-color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.36);
  box-shadow: 0 16px 46px rgba(29, 29, 31, 0.1), 0 1px 0 rgba(255, 255, 255, 0.92) inset;
  -webkit-backdrop-filter: blur(34px) saturate(1.9);
  backdrop-filter: blur(34px) saturate(1.9);
}

.search-shell:focus-within {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(0, 122, 255, 0.14), 0 1px 0 #fff inset;
}

.project-card,
.featured-card {
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72)),
    var(--liquid-surface);
  box-shadow:
    0 24px 72px rgba(29, 29, 31, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.project-card .cover-art,
.featured-card .cover-art {
  min-height: 176px;
  aspect-ratio: 1.28;
  padding: 24px;
  border-bottom: 0;
  place-items: center;
}

.featured-card .cover-art {
  min-height: 198px;
}

.project-card .cover-art::before,
.featured-card .cover-art::before {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.28), transparent 30%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(135deg, var(--art-a), rgba(30, 170, 190, 0.88) 48%, var(--art-b));
  filter: saturate(0.98) brightness(1.03);
}

.project-card .cover-art.has-icon::after,
.featured-card .cover-art.has-icon::after {
  width: 136px;
  height: 136px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    0 28px 74px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  transform: translateY(-10px);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
  backdrop-filter: blur(22px) saturate(1.55);
}

.project-card .cover-icon,
.featured-card .cover-icon {
  z-index: 3;
  width: 112px;
  height: 112px;
  border-radius: 26px;
  transform: translateY(-10px);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.58) inset;
}

.project-card:hover .cover-icon,
.featured-card:hover .cover-icon {
  transform: translateY(-14px) scale(1.035);
}

.project-card .cover-art span,
.featured-card .cover-art span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: inline-flex;
  justify-self: center;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: calc(100% - 36px);
  min-height: 32px;
  margin: 0 auto;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(29, 29, 31, 0.26);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
}

.project-card .card-body,
.featured-card .card-body {
  display: grid;
  gap: 10px;
  min-height: 218px;
  padding: 18px 20px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66)),
    rgba(255, 255, 255, 0.56);
}

.project-card .card-body h3,
.featured-card .card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #1d1d1f;
  font-size: 20px;
  font-weight: 820;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-card .card-body p,
.featured-card .card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  color: #6e6e73;
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-card .tag-row,
.featured-card .tag-row {
  flex-wrap: nowrap;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
  margin-top: 2px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.project-card .tag-row::-webkit-scrollbar,
.featured-card .tag-row::-webkit-scrollbar {
  display: none;
}

.project-card .badge,
.featured-card .badge {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 11px;
  font-size: 12px;
  white-space: nowrap;
}

.project-card .price-line,
.featured-card .price-line {
  align-self: end;
  min-height: 38px;
  margin-top: 4px;
}

.project-card .price,
.featured-card .price {
  font-size: 22px;
  letter-spacing: 0;
}

.project-card .text-button,
.featured-card .text-button {
  min-height: 36px;
  padding: 0 2px;
  font-size: 15px;
  font-weight: 760;
  white-space: nowrap;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-copy,
  .contact-card,
  .section-block,
  .catalog-header,
  .filter-panel,
  .project-card,
  .featured-card,
  .compact-card,
  .ad-slot-card,
  .detail-top,
  .summary-strip,
  .detail-section,
  .contact-layout,
  .contact-panel {
    background: rgba(255, 255, 255, 0.94);
  }
}

.admin-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
}

.admin-page-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px;
}

.admin-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 18px;
  border: 1px solid rgba(229, 229, 234, 0.76);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-page-shell .admin-sidebar {
  top: 24px;
}

.admin-brand {
  margin-bottom: 20px;
}

.admin-sidebar strong {
  display: block;
  margin-bottom: 14px;
}

.admin-tab {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  padding: 0 12px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.admin-tab.active,
.admin-tab:hover {
  background: #f2f2f7;
  color: var(--text);
}

.admin-home-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--blue);
  font-weight: 700;
}

.admin-main {
  min-width: 0;
  overflow: hidden;
  padding: 26px;
  border-radius: 22px;
}

.admin-main.standalone {
  border: 1px solid rgba(229, 229, 234, 0.76);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-view {
  display: none;
}

.admin-view.active {
  display: block;
  animation: pageIn 260ms var(--ease);
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
}

.admin-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.admin-search input,
.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  outline: 0;
}

.modal-form textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.text-button.danger {
  color: var(--red);
}

.table-wrap {
  max-width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-weight: 750;
}

tbody tr:hover {
  background: #fbfbfd;
}

.table-cover {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--art-a), var(--art-b));
}

.ad-management-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-form {
  display: grid;
  max-width: 560px;
  gap: 16px;
}

.settings-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(29, 29, 31, 0.28);
  backdrop-filter: blur(12px);
}

.modal-backdrop[hidden],
.toast[hidden] {
  display: none;
}

.modal-panel {
  width: min(760px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(29, 29, 31, 0.24);
  animation: pageIn 220ms var(--ease);
}

.modal-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.modal-heading h2 {
  margin: 0;
  font-size: 24px;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: #f2f2f7;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.modal-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.modal-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

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

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  min-width: 180px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow-hover);
  animation: riseIn 260ms var(--ease);
}

.icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.icon svg {
  width: 100%;
  height: 100%;
}

.mobile-consult {
  display: none;
}

.reveal {
  animation: riseIn 620ms var(--spring) both;
}

.delay-1 {
  animation-delay: 90ms;
}

.delay-2 {
  animation-delay: 170ms;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.motion-item {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 520ms var(--spring), transform 520ms var(--spring);
  transition-delay: var(--motion-delay, 0ms);
}

.motion-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes softPop {
  0% {
    transform: scale(0.94);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes iconSettle {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes stageSheen {
  from {
    background-position: -140% 0, 0 0, 0 0;
  }
  to {
    background-position: 140% 0, 34px 34px, 34px 34px;
  }
}

@keyframes floatPhoneA {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@keyframes floatPhoneB {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 12px;
  }
}

@keyframes tilePulse {
  0%,
  100% {
    background: #f5f5f7;
  }
  50% {
    background: #e8f2ff;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto minmax(180px, 1fr) auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .hero,
  .hero.slim,
  .contact-layout,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 320px;
  }

  .featured-row,
  .project-grid,
  .ad-slot-grid,
  .home-ad-grid,
  .placement-grid,
  .metric-grid,
  .ad-management-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .admin-sidebar {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .admin-page-shell {
    grid-template-columns: 1fr;
  }

  .admin-tab {
    min-width: 110px;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 12px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  main {
    padding: 22px 14px 92px;
  }

  .admin-page-shell {
    padding: 14px;
  }

  .hero-copy,
  .section-block,
  .catalog-header,
  .filter-panel,
  .contact-layout,
  .admin-main {
    padding: 20px;
  }

  .hero-copy h1,
  .catalog-header h1,
  .contact-layout h1,
  .admin-main h1 {
    font-size: 36px;
  }

  .hero-stage {
    min-height: auto;
  }

  .finder-metrics,
  .finder-actions {
    grid-template-columns: 1fr;
  }

  .ad-banner,
  .catalog-header,
  .detail-top {
    grid-template-columns: 1fr;
  }

  .featured-row,
  .project-grid,
  .ad-slot-grid,
  .home-ad-grid,
  .placement-grid,
  .metric-grid,
  .ad-management-grid,
  .filter-panel,
  .admin-toolbar,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-card {
    align-items: flex-start;
  }

  .compact-actions {
    text-align: left;
  }

  .detail-icon {
    width: 118px;
    height: 118px;
    border-radius: 24px;
  }

  .screenshot-card {
    flex-basis: 220px;
    min-height: 470px;
  }

  .screenshot-card.landscape {
    flex-basis: 340px;
    min-height: 190px;
  }

  .mobile-consult {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 19;
    display: block;
    animation: riseIn 420ms var(--ease);
  }

  .mobile-consult a {
    display: grid;
    min-height: 48px;
    place-items: center;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 34px rgba(0, 122, 255, 0.3);
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal-panel {
    max-height: 92vh;
    border-radius: 20px;
  }

  .modal-heading,
  .modal-form {
    padding: 18px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .primary-button,
  .modal-actions .secondary-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .motion-item {
    opacity: 1;
    transform: none;
  }

  .hero-stage::after,
  .hero-phone,
  .mock-tile {
    animation: none !important;
  }
}
