:root {
  --bg: #f8f8fa;
  --surface: #ffffff;
  --surface-dark: #2f315b;
  --text-main: #2b2c58;
  --text-soft: #4e5378;
  --border-soft: #e7e9f2;
  --button-dark: #1f1a1e;
  --brand-violet: #4b49c8;
  --brand-violet-deep: #3c2aa8;
  --brand-orange: #ff8a3d;
  --brand-coral: #ff4a4f;
  --brand-sky: #57a6ff;
  --radius-card: 34px;
  --radius-button: 999px;
  --shadow-soft: 0 20px 60px rgba(75, 73, 200, 0.12);
  --shadow-card-hover: 0 30px 80px rgba(43, 44, 88, 0.18);
  --page-gutter: clamp(24px, 3.4vw, 56px);
  --developer-hero-height: 472px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(87, 166, 255, 0.18), transparent 22%),
    radial-gradient(circle at top right, rgba(255, 138, 61, 0.18), transparent 18%),
    linear-gradient(180deg, #f8f8fa 0%, #f3f5fb 100%);
  color: var(--text-main);
  font-family: "Onest", "Manrope", "Inter", system-ui, sans-serif;
  line-height: 1.5;
}

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

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

.container {
  width: calc(100% - (var(--page-gutter) * 2));
  max-width: none;
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: rgba(248, 248, 250, 0.78);
  border-bottom: 1px solid rgba(231, 233, 242, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.brandmark img {
  width: 286px;
}

.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 2px;
  color: var(--text-soft);
  font-weight: 500;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-violet);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text-main);
  transform: translateY(-1px);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active,
.site-nav a[aria-current="page"] {
  color: var(--text-main);
}

.site-nav a.is-active,
.site-nav a[aria-current="page"] {
  font-weight: 700;
}

.muted {
  color: var(--text-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-button);
  padding: 14px 22px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-dark {
  background: var(--button-dark);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 26, 30, 0.2);
}

.button-soft {
  background: rgba(75, 73, 200, 0.1);
  color: var(--brand-violet-deep);
}

.button-ghost {
  background: rgba(75, 73, 200, 0.08);
  color: var(--brand-violet-deep);
}

.button-link {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  color: var(--brand-violet);
}

.notice-bar {
  padding: 12px 0;
  background: linear-gradient(135deg, #57a6ff 0%, #4b49c8 100%);
  color: #fff;
  font-weight: 600;
}

.cookie-consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: min(440px, calc(100vw - 48px));
  padding: 18px 20px;
  border: 1px solid rgba(75, 73, 200, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(43, 44, 88, 0.16);
  backdrop-filter: blur(18px);
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-soft);
}

.cookie-consent a {
  color: var(--brand-violet);
  font-weight: 700;
}

.cookie-consent .button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 12px 18px;
  white-space: nowrap;
}

.hero {
  padding: 56px 0 32px;
}

.hero-small {
  padding-top: 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.developer-hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.hero-grid.narrow {
  grid-template-columns: 1fr;
}

.hero-copy,
.hero-panel,
.hero-visual,
.filter-panel {
  border-radius: 38px;
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  padding: 48px;
  background: linear-gradient(135deg, rgba(75, 73, 200, 0.08) 0%, rgba(255, 138, 61, 0.1) 100%);
}

.developer-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  height: var(--developer-hero-height);
  min-height: var(--developer-hero-height);
  max-height: var(--developer-hero-height);
}

.hero-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-headline-line {
  display: block;
}

.hero-small .hero-copy h1,
.hero-project .hero-copy h1 {
  font-size: clamp(36px, 4.8vw, 62px);
}

.developer-company-profile {
  display: grid;
  gap: 10px;
  margin: -2px 0 auto;
}

.developer-company-profile-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(75, 73, 200, 0.08);
}

.developer-company-profile-item:first-child {
  border-top: 1px solid rgba(75, 73, 200, 0.08);
}

.developer-company-profile-item strong {
  font-size: 13px;
  line-height: 1.3;
  color: var(--brand-violet);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.developer-company-profile-item span {
  display: block;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}

.developer-company-profile-item-wide {
  grid-template-columns: 128px minmax(0, 1fr);
}

.developer-company-profile-link {
  width: fit-content;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-violet);
}

.developer-company-profile-summary {
  margin: 2px 0 0;
  max-width: 92%;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-soft);
}

.hero-copy p {
  max-width: 700px;
  font-size: 18px;
  color: var(--text-soft);
}

.eyebrow {
  color: var(--brand-violet);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 18px;
  background: linear-gradient(135deg, #4b49c8 0%, #3c2aa8 100%);
  color: #fff;
}

.metric-card {
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  min-height: 108px;
}

.metric-card span {
  display: block;
  font-size: 13px;
  opacity: 0.78;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
}

.hero-panel-form {
  grid-column: 1 / -1;
  padding: 10px 4px 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.hero-visual {
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(255, 138, 61, 0.9) 0%, rgba(255, 74, 79, 0.88) 100%),
    linear-gradient(180deg, #f8f8fa 0%, #f3f5fb 100%);
  background-size: cover;
  background-position: center;
}

.hero-visual.has-image {
  background-color: #e7e9f2;
}

.gallery-lock {
  overflow: hidden;
}

.hero-gallery-shell {
  position: relative;
  min-width: 0;
}

.developer-hero-gallery-shell,
.developer-hero-visual {
  height: var(--developer-hero-height);
  min-height: var(--developer-hero-height);
  max-height: var(--developer-hero-height);
}

.hero-gallery {
  position: relative;
  display: grid;
  gap: 14px;
  height: 100%;
}

.developer-hero-gallery {
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
}

.developer-hero-gallery .hero-gallery-stage {
  height: 100%;
  min-height: 0;
}

.developer-hero-gallery .hero-gallery-stage img {
  min-height: 0;
}

.hero-gallery-stage {
  position: relative;
  display: block;
  min-height: 320px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 38px;
  background: #dfe3f1;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

.hero-gallery-stage img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.hero-gallery-stage:hover img {
  transform: scale(1.02);
}

.hero-gallery-badge,
.hero-gallery-hint {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(31, 26, 30, 0.72);
  color: #fff;
  backdrop-filter: blur(14px);
}

.hero-gallery-badge {
  top: 18px;
  right: 18px;
  font-size: 13px;
  font-weight: 700;
}

.hero-gallery-hint {
  left: 18px;
  bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}

.hero-gallery-nav,
.gallery-lightbox-nav,
.gallery-lightbox-close {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 26, 30, 0.74);
  color: #fff;
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.hero-gallery-nav {
  top: 50%;
  width: 52px;
  height: 52px;
  font-size: 34px;
  transform: translateY(-50%);
}

.hero-gallery-nav-prev,
.gallery-lightbox-nav-prev {
  left: 18px;
}

.hero-gallery-nav-next,
.gallery-lightbox-nav-next {
  right: 18px;
}

.hero-gallery-thumbs,
.gallery-lightbox-thumbs {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-gallery-thumbs::-webkit-scrollbar,
.gallery-lightbox-thumbs::-webkit-scrollbar {
  display: none;
}

.hero-gallery-thumb,
.gallery-lightbox-thumb {
  flex: 0 0 auto;
  width: 96px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.hero-gallery-thumb:hover,
.gallery-lightbox-thumb:hover {
  transform: translateY(-1px);
}

.hero-gallery-thumb.is-active,
.gallery-lightbox-thumb.is-active {
  border-color: var(--brand-violet);
}

.hero-gallery-thumb img,
.gallery-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 24, 0.88);
  backdrop-filter: blur(20px);
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(1440px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  padding: 24px;
  border-radius: 32px;
  background: rgba(21, 23, 34, 0.86);
  color: #fff;
}

.gallery-lightbox-close {
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  font-size: 32px;
}

.gallery-lightbox-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: 64px;
}

.gallery-lightbox-topline strong {
  font-size: 18px;
}

.gallery-lightbox-topline span {
  color: rgba(255, 255, 255, 0.7);
}

.gallery-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
}

.gallery-lightbox-stage img {
  width: 100%;
  max-height: calc(100vh - 240px);
  object-fit: contain;
}

.gallery-lightbox-nav {
  top: 50%;
  width: 56px;
  height: 56px;
  font-size: 36px;
  transform: translateY(-50%);
}

.plan-visual {
  min-height: 420px;
}

.filter-panel {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--surface);
}

.filter-panel-projects {
  gap: 24px;
}

.filter-panel-head {
  display: grid;
  gap: 6px;
}

.filter-panel-count,
.filter-panel-summary,
.filter-hint {
  margin: 0;
}

.filter-panel-count {
  font-size: 18px;
  color: var(--text-soft);
}

.filter-panel-summary,
.filter-hint {
  font-size: 14px;
  color: var(--text-soft);
}

.filter-hint {
  margin-top: 10px;
}

.filter-panel label,
.lead-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

.filter-select-group {
  display: grid;
  gap: 10px;
}

.filter-group {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 14px;
}

.filter-group-title {
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.search-field {
  position: relative;
  display: block;
}

.search-field input {
  padding-left: 56px;
  min-height: 60px;
  border-radius: 24px;
  font-size: 18px;
}

.search-field-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 24px;
  height: 24px;
  color: #9da3ba;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-chip-grid-compact .filter-chip {
  min-width: 74px;
}

.filter-chip-grid-budget .filter-chip {
  min-width: 142px;
}

.filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0;
  border-radius: 20px;
  border: 1px solid #d9dce7;
  background: #fff;
  color: var(--button-dark);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(75, 73, 200, 0.26);
}

.filter-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.filter-chip span {
  padding: 0 18px;
  font-size: 18px;
  line-height: 1.1;
  text-align: center;
}

.filter-chip.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(75, 73, 200, 0.12) 0%, rgba(87, 166, 255, 0.16) 100%);
  color: var(--brand-violet-deep);
  box-shadow: inset 0 0 0 1px rgba(75, 73, 200, 0.1);
}

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

.collection-filter-panel {
  width: 100%;
  gap: 16px;
  padding: 24px;
}

.collection-hero-copy {
  padding-right: 48px;
}

.collection-hero-title {
  max-width: 980px;
}

.collection-filter-head {
  grid-column: 1 / -1;
}

.collection-filter-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

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

.collection-range-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(75, 73, 200, 0.06) 0%, rgba(87, 166, 255, 0.08) 100%);
  border: 1px solid rgba(75, 73, 200, 0.08);
}

.collection-select-card {
  align-content: start;
}

.collection-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.collection-range-head span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.collection-range-head strong {
  font-size: 14px;
  color: var(--text-main);
}

.collection-select-card select {
  min-height: 64px;
  border-color: rgba(75, 73, 200, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.collection-range-card input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  accent-color: var(--brand-violet);
}

.collection-dual-range {
  position: relative;
  height: 28px;
}

.collection-dual-range::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  border-radius: 999px;
  background: rgba(75, 73, 200, 0.14);
  transform: translateY(-50%);
}

.collection-range-card input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}

.collection-range-card input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}

.collection-range-card input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand-violet);
  box-shadow: 0 4px 12px rgba(75, 73, 200, 0.24);
  pointer-events: auto;
  cursor: pointer;
}

.collection-range-card input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
}

.collection-range-card input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand-violet);
  box-shadow: 0 4px 12px rgba(75, 73, 200, 0.24);
  pointer-events: auto;
  cursor: pointer;
}

.collection-filter-actions {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0;
}

.collection-load-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text-main);
  background: #fff;
}

select:disabled {
  color: #8f95ab;
  background: #f8f8fa;
}

textarea {
  resize: vertical;
}

.section {
  padding: 18px 0 42px;
}

.tone-soft {
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(231, 233, 242, 0.7);
  border-bottom: 1px solid rgba(231, 233, 242, 0.7);
}

.section-head,
.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2,
.split-head h2,
.article-section h2,
.text-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.stack {
  display: grid;
  gap: 20px;
}

.card,
.cta-surface,
.media-card,
.table-shell,
.article-body,
.article-side {
  position: relative;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card-clickable {
  transform-origin: center;
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.card-clickable:hover,
.card-clickable:focus-within {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-card-hover);
}

.card-cover {
  position: relative;
  display: block;
  min-height: 200px;
  padding: 18px;
  background:
    linear-gradient(160deg, rgba(75, 73, 200, 0.18) 0%, rgba(255, 255, 255, 0.2) 100%),
    linear-gradient(135deg, #dfe2ff 0%, #f8f8fa 100%);
  background-size: cover;
  background-position: center;
  transition: transform 280ms ease, filter 280ms ease;
  transform-origin: center;
}

.card-cover.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 44, 88, 0.04) 0%, rgba(43, 44, 88, 0.44) 100%);
  transition: opacity 280ms ease;
}

.card-clickable:hover .card-cover,
.card-clickable:focus-within .card-cover {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.02);
}

.card-clickable:hover .card-cover.has-image::after,
.card-clickable:focus-within .card-cover.has-image::after {
  opacity: 0.78;
}

.gradient-violet {
  background: linear-gradient(135deg, #4b49c8 0%, #3c2aa8 100%);
}

.gradient-orange {
  background: linear-gradient(135deg, #ff8a3d 0%, #ffb36b 100%);
}

.gradient-coral {
  background: linear-gradient(135deg, #ff4a4f 0%, #ff7a7e 100%);
}

.gradient-sky {
  background: linear-gradient(135deg, #57a6ff 0%, #8ac8ff 100%);
}

.card-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(31, 26, 30, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
}

.card-chip.soft {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.card-body h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.card-body p {
  margin: 0;
  color: var(--text-soft);
}

.project-card .card-body {
  align-content: start;
}

.project-location-card {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.project-location-card-wide {
  grid-column: 1 / -1;
}

.project-map-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(75, 73, 200, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-map-card:hover,
.project-map-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(75, 73, 200, 0.22);
  box-shadow: 0 14px 28px rgba(43, 44, 88, 0.12);
}

.project-map-widget {
  display: block;
  width: 100%;
  height: min(68vh, 640px);
  min-height: 360px;
  border: 0;
  background: linear-gradient(135deg, #dfe2ff 0%, #f8f8fa 100%);
}

.project-map-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(75, 73, 200, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-map-link:hover,
.project-map-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(75, 73, 200, 0.22);
  box-shadow: 0 14px 28px rgba(43, 44, 88, 0.12);
}

.project-map-link span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-violet-deep);
  background: rgba(75, 73, 200, 0.05);
}

.project-map-link span::after {
  content: "↗";
  font-size: 14px;
}

.collection-card .card-body {
  height: 100%;
  align-content: start;
}

.district-card {
  min-height: 0;
}

.district-card .card-body {
  gap: 12px;
  padding: 20px 20px 22px;
}

.district-card h3 {
  font-size: 22px;
}

.district-card p {
  font-size: 15px;
}

.district-card-price-line {
  display: flex;
  align-items: baseline;
}

.district-card-price {
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
}

.district-card .button {
  width: 100%;
  min-height: 52px;
}

.district-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.district-card .card-chip {
  margin-right: 0;
}

.district-card .card-chip.soft {
  background: rgba(75, 73, 200, 0.14);
  color: var(--brand-violet-deep);
  backdrop-filter: none;
}

.collection-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(75, 73, 200, 0.14);
  background: linear-gradient(135deg, rgba(75, 73, 200, 0.1) 0%, rgba(87, 166, 255, 0.12) 100%);
  color: var(--brand-violet-deep);
  margin-bottom: 10px;
}

.collection-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(75, 73, 200, 0.14);
  font-size: 16px;
  line-height: 1;
  transform-origin: center;
  animation: collection-emoji-float 3.6s ease-in-out infinite;
}

.collection-card:nth-child(2n) .collection-emoji {
  animation-delay: 0.45s;
}

.collection-card:nth-child(3n) .collection-emoji {
  animation-delay: 0.9s;
}

@keyframes collection-emoji-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  50% {
    transform: translateY(-3px) rotate(-4deg) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .collection-emoji {
    animation: none;
  }
}

.card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.card-link-overlay:focus-visible {
  outline: 3px solid rgba(75, 73, 200, 0.42);
  outline-offset: -3px;
}

.card-clickable .button {
  position: relative;
  z-index: 3;
}

.promo-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 34px;
  border-radius: 38px;
  background: linear-gradient(135deg, #2f315b 0%, #4b49c8 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.promo-points {
  display: grid;
  gap: 14px;
  align-content: center;
}

.promo-points span {
  display: inline-flex;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
}

.quiz-band {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 14px;
  align-items: stretch;
  min-height: 224px;
  padding: 16px;
  border-radius: 38px;
  background:
    radial-gradient(circle at top right, rgba(126, 154, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #2d2f58 0%, #4b49c8 58%, #6e6ae8 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.quiz-band-copy {
  display: grid;
  align-content: center;
  gap: 0;
}

.quiz-band-copy h2 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(26px, 3.45vw, 46px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.quiz-band-copy p {
  margin: 0;
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.84);
}

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

.quiz-progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.quiz-progress-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.quiz-progress-step strong {
  font-size: 14px;
  line-height: 1.1;
}

.quiz-progress-step.is-active,
.quiz-progress-step.is-complete {
  color: #fff;
  transform: translateY(-1px);
}

.quiz-progress-step.is-active {
  background: rgba(255, 255, 255, 0.18);
}

.quiz-progress-step.is-complete {
  background: rgba(92, 194, 124, 0.18);
}

.quiz-progress-step.is-complete span {
  background: rgba(92, 194, 124, 0.24);
}

.quiz-live-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz-live-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.quiz-panel {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.quiz-step {
  display: grid;
  gap: 10px;
}

.quiz-step[hidden] {
  display: none !important;
}

.quiz-step-head {
  display: grid;
  gap: 6px;
}

.quiz-step-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-step-counter {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.quiz-step h3 {
  margin: 0;
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.08;
}

.quiz-step-emoji {
  display: inline-block;
  margin-left: 8px;
}

.quiz-step-backlink {
  padding: 0;
  min-height: auto;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
}

.quiz-step-backlink:hover {
  background: transparent;
  color: #fff;
}

.quiz-step-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.quiz-select-wrap {
  position: relative;
  display: block;
}

.quiz-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(33, 28, 51, 0.82);
  border-bottom: 2px solid rgba(33, 28, 51, 0.82);
  transform: translateY(-62%) rotate(45deg);
  pointer-events: none;
}

.quiz-select {
  width: 100%;
  min-height: 48px;
  padding: 0 46px 0 16px;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  color: #211c33;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 10px 30px rgba(29, 23, 59, 0.1);
  cursor: pointer;
}

.quiz-select:focus {
  outline: 2px solid rgba(255, 255, 255, 0.58);
  outline-offset: 2px;
}

.quiz-options {
  gap: 8px;
}

.quiz-option {
  flex: 1 1 calc(50% - 12px);
  min-width: 190px;
  min-height: 42px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.94);
}

.quiz-option span {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}

.quiz-option.is-active {
  background: linear-gradient(135deg, #fff3e9 0%, #eef3ff 100%);
  box-shadow: inset 0 0 0 1px rgba(75, 73, 200, 0.12);
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.quiz-nav .button-dark {
  min-width: 160px;
}

.quiz-nav .button-link {
  color: #fff;
}

.quiz-nav .button-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.quiz-nav .button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.quiz-step-form {
  gap: 6px;
}

.quiz-final-summary {
  max-width: none;
  font-size: 14px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.9);
}

.quiz-step-form .lead-grid.quiz-contact-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
}

.quiz-step-form label,
.quiz-step-form .lead-note {
  color: rgba(255, 255, 255, 0.82);
}

.quiz-step-form input {
  background: rgba(255, 255, 255, 0.96);
  min-height: 48px;
}

.quiz-step-form .quiz-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.quiz-step-form .quiz-nav .button-dark {
  width: 100%;
  min-width: 0;
}

.quiz-step-form .quiz-nav .button-link {
  justify-self: start;
  padding-left: 0;
  padding-right: 0;
}

.cta-surface {
  padding: 26px;
}

.cta-surface-flat {
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.lead-form {
  display: grid;
  gap: 18px;
}

.lead-form-dark {
  padding: 24px;
  border-radius: 32px;
  background: linear-gradient(135deg, #4b49c8 0%, #3c2aa8 100%);
  color: #fff;
}

.lead-form-dark p,
.lead-form-dark label span,
.lead-form-dark .lead-note {
  color: rgba(255, 255, 255, 0.82);
}

.lead-form-dark input,
.lead-form-dark textarea {
  background: rgba(255, 255, 255, 0.96);
}

.hero-panel-form .lead-form-dark {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.hero-panel-form .lead-form-dark h3,
.hero-panel-form .lead-form-dark p,
.hero-panel-form .lead-form-dark label span,
.hero-panel-form .lead-form-dark .lead-note {
  color: rgba(255, 255, 255, 0.9);
}

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

.lead-form h3 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1;
}

.lead-form p {
  margin: 0;
}

.lead-note {
  font-size: 13px;
}

.lead-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.lead-form-compact {
  gap: 14px;
}

.lead-form-compact .lead-form-head {
  display: grid;
  gap: 6px;
}

.lead-form-compact h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.lead-form-compact p {
  font-size: 14px;
  color: var(--text-soft);
}

.lead-form-dark.lead-form-compact p,
.lead-form-dark.lead-form-compact label span,
.lead-form-dark.lead-form-compact .lead-note {
  color: rgba(255, 255, 255, 0.84);
}

.lead-form-compact .lead-grid {
  gap: 12px;
}

.lead-form-compact input {
  min-height: 54px;
}

.lead-form-compact .button {
  width: 100%;
}

.lead-form-compact .lead-note {
  font-size: 12px;
}

.detail-grid,
.article-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.detail-main,
.detail-side {
  min-width: 0;
}

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

.hero-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.32fr);
  margin-top: auto;
  margin-bottom: 0;
}

.info-card {
  padding: 20px;
  border-radius: 26px;
  background: rgba(75, 73, 200, 0.06);
}

.hero-info-card {
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
}

.hero-info-card-price strong {
  white-space: nowrap;
}

.info-card span {
  display: block;
  color: var(--text-soft);
  font-size: 14px;
}

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

.table-shell {
  padding: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

.media-card {
  padding: 12px;
  margin-bottom: 24px;
}

.media-card img {
  border-radius: 24px;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.media-gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.media-gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.media-gallery-item:hover img,
.media-gallery-item:focus-visible img {
  transform: scale(1.03);
}

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

.developer-about-card {
  display: grid;
  gap: 14px;
  padding: 24px 28px;
  margin-bottom: 28px;
  border-radius: 28px;
  background: rgba(75, 73, 200, 0.05);
  border: 1px solid rgba(75, 73, 200, 0.08);
}

.developer-about-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
}

.developer-about-card a {
  width: fit-content;
  color: var(--brand-violet);
  font-weight: 600;
}

.brief-card,
.stack-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(75, 73, 200, 0.05);
  border: 1px solid rgba(75, 73, 200, 0.08);
}

.brief-card strong,
.stack-card strong {
  font-size: 18px;
  line-height: 1.15;
}

.brief-card span,
.stack-card p {
  margin: 0;
  color: var(--text-soft);
}

.brief-card-accent {
  background: rgba(255, 138, 61, 0.08);
  border-color: rgba(255, 138, 61, 0.16);
}

.stack-list {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}

.empty-state {
  max-width: 720px;
}

.error-hero {
  padding: 64px 0 24px;
}

.error-page {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.error-page-copy,
.error-page-panel {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  box-shadow: var(--shadow-soft);
}

.error-page-copy {
  padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(circle at top right, rgba(87, 166, 255, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(75, 73, 200, 0.1) 0%, rgba(255, 138, 61, 0.12) 100%);
}

.error-page-violet .error-page-copy {
  background:
    radial-gradient(circle at top right, rgba(87, 166, 255, 0.32), transparent 28%),
    linear-gradient(135deg, rgba(75, 73, 200, 0.12) 0%, rgba(255, 138, 61, 0.12) 100%);
}

.error-page-coral .error-page-copy {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 126, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(255, 74, 79, 0.14) 0%, rgba(255, 138, 61, 0.12) 100%);
}

.error-page-code {
  margin: 10px 0 14px;
  font-size: clamp(72px, 14vw, 148px);
  line-height: 0.88;
  letter-spacing: -0.07em;
  font-weight: 800;
  color: var(--text-main);
}

.error-page-copy h1 {
  max-width: 720px;
  margin: 0 0 16px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.error-page-copy p {
  max-width: 720px;
  margin: 0;
  font-size: 18px;
  color: var(--text-soft);
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.error-page-panel {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: 30px;
  background: linear-gradient(135deg, #2f315b 0%, #4b49c8 100%);
  color: #fff;
}

.error-page-panel-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.error-page-tips {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.error-page-tips li {
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

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

.error-page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease;
}

.error-page-links a:hover,
.error-page-links a:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
}

.article-shell {
  padding: 34px 0 0;
}

.article-hero {
  max-width: 900px;
}

.article-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 0.97;
  letter-spacing: -0.04em;
}

.article-lead {
  font-size: 22px;
  color: var(--text-soft);
}

.article-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  color: var(--text-soft);
}

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

.tag {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(75, 73, 200, 0.08);
  color: var(--brand-violet-deep);
  font-size: 13px;
  font-weight: 600;
}

.tag-row.compact {
  margin-top: 6px;
}

.tag-0 {
  background: rgba(75, 73, 200, 0.1);
  color: #3c2aa8;
}

.tag-1 {
  background: rgba(255, 138, 61, 0.14);
  color: #9a4d0f;
}

.tag-2 {
  background: rgba(87, 166, 255, 0.14);
  color: #12508a;
}

.tag-3 {
  background: rgba(255, 74, 79, 0.12);
  color: #9d1f28;
}

.tag-4 {
  background: rgba(43, 44, 88, 0.1);
  color: #2b2c58;
}

.article-body,
.article-side {
  padding: 30px;
}

.article-grid-wide {
  grid-template-columns: 1fr;
}

.article-section + .article-section {
  margin-top: 26px;
}

.article-section p {
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--text-soft);
}

.article-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.article-accent {
  padding-left: 18px;
  border-left: 4px solid var(--brand-orange);
  font-weight: 600;
  color: var(--text-main);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.button-light:hover,
.button-light:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.news-index-hero {
  padding-top: 28px;
}

.news-index-hero-inner {
  max-width: 760px;
  display: grid;
  gap: 12px;
}

.news-index-hero-inner h1 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.news-index-hero-inner p {
  margin: 0;
  font-size: 18px;
  color: var(--text-soft);
}

.news-detail-shell {
  position: relative;
}

.news-detail-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 340px;
  background:
    radial-gradient(circle at 18% 8%, rgba(87, 166, 255, 0.16), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(255, 138, 61, 0.1), transparent 28%);
  pointer-events: none;
}

.news-masthead {
  position: relative;
  z-index: 1;
  max-width: 1040px;
}

.news-masthead-panel {
  max-width: 960px;
  padding: 34px 38px;
  border: 1px solid rgba(222, 226, 240, 0.9);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 60px rgba(31, 40, 85, 0.08);
}

.news-masthead-copy {
  display: grid;
  gap: 16px;
}

.news-masthead-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}

.news-masthead h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.news-masthead-lead {
  margin: 0;
  max-width: 760px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-soft);
}

.news-article-body {
  max-width: 960px;
  padding: 24px 0 0;
}

.news-article-surface {
  display: grid;
  gap: 0;
  padding: 34px 38px 16px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.news-article-section h2 {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.14;
}

.news-article-section p,
.news-article-section li {
  font-size: 16px;
  line-height: 1.75;
}

.news-article-section .article-accent {
  padding: 16px 18px;
  border-left: 3px solid var(--brand-orange);
  border-radius: 18px;
  background: rgba(255, 138, 61, 0.08);
}

.news-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0;
  padding: 18px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #1f3f8f 0%, #355cc7 100%);
  color: #fff;
}

.news-inline-cta-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.news-inline-cta h2 {
  margin: 4px 0 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.08;
  color: #fff;
}

.related-news-section {
  margin-top: 22px;
}

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

.related-news-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.related-news-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.related-news-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.48;
  color: var(--text-soft);
}

.related-news-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-violet);
}

.news-form-surface .lead-form {
  max-width: 960px;
  padding-top: 8px;
  margin: 0 auto;
}

.news-home-grid .material-card {
  height: 100%;
}

.faq-item {
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
}

.faq-item h3 {
  margin: 0 0 8px;
}

.text-card .card-body {
  padding: 32px;
}

.legal-page {
  padding: 135px 0;
  background: #fff;
}

.legal-page-shell {
  max-width: 860px;
}

.legal-page-head {
  margin-bottom: 45px;
}

.legal-page-title {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.legal-content {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-main);
  font-weight: 500;
}

.legal-content p,
.legal-content ul {
  margin: 0;
}

.legal-content ul {
  padding-left: 26px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.material-card-list .card-body {
  gap: 12px;
}

.journal-list {
  display: grid;
  gap: 18px;
}

.journal-item {
  display: grid;
  gap: 12px;
  padding: 24px 26px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.journal-item h2 {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.journal-item p,
.journal-item-footer,
.journal-item-meta {
  margin: 0;
  color: var(--text-soft);
}

.journal-item-meta,
.journal-item-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.journal-item-footer a {
  color: var(--brand-violet);
  font-weight: 600;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 24px;
  padding: 48px 0 56px;
}

.site-footer {
  margin-top: 42px;
  background: var(--surface-dark);
  color: #fff;
}

.site-footer a,
.site-footer p {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  margin: 10px 0 0;
}

.footer-logo {
  width: 164px;
  margin-bottom: 16px;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal-inner {
  display: grid;
  gap: 18px;
  padding: 18px 0 26px;
}

.site-footer .footer-company {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}

.site-footer .footer-legal-links a,
.site-footer .footer-legal-note {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-legal-note {
  display: block;
}

@media (max-width: 1120px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .media-gallery,
  .brief-grid,
  .hero-grid,
  .detail-grid,
  .article-grid,
  .dual-columns,
  .error-page,
  .quiz-band,
  .promo-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-gallery-thumbs,
  .gallery-lightbox-thumbs {
    padding-bottom: 4px;
  }

  .developer-hero-copy,
  .developer-hero-gallery-shell,
  .developer-hero-visual {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .developer-company-profile-item,
  .developer-company-profile-item-wide {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 820px) {
  .container {
    width: calc(100% - 24px);
  }

  .site-nav,
  .hide-mobile {
    display: none;
  }

  .hero-copy,
  .hero-panel,
  .filter-panel,
  .quiz-band,
  .quiz-panel,
  .cta-surface {
    padding: 24px;
  }

  .hero-panel-form {
    padding: 20px;
  }

  .collection-filter-panel {
    width: 100%;
  }

  .collection-hero-copy {
    padding-right: 24px;
  }

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

  .collection-range-grid {
    grid-template-columns: 1fr 1fr;
    grid-column: 1 / -1;
  }

  .collection-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .collection-range-head {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .footer-legal-links {
    gap: 10px 18px;
  }

  .news-inline-cta {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .filter-chip-grid-budget .filter-chip,
  .filter-chip {
    min-width: calc(50% - 6px);
  }

  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
  }

  .cookie-consent .button {
    width: 100%;
  }

  .filter-chip-grid-compact .filter-chip {
    min-width: calc(33.333% - 8px);
  }

  .hero-copy h1,
  .article-hero h1 {
    line-height: 1;
  }

  .news-masthead h1 {
    max-width: none;
  }

  .news-masthead-panel,
  .news-article-surface {
    padding: 26px 24px;
    border-radius: 26px;
  }

  .brandmark img {
    width: 240px;
  }

  .lead-grid,
  .info-grid,
  .grid-4,
  .grid-3,
  .media-gallery,
  .brief-grid,
  .quiz-progress {
    grid-template-columns: 1fr;
  }

  .quiz-step-form .lead-grid.quiz-contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .quiz-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .quiz-nav .button,
  .quiz-option {
    width: 100%;
  }

  .quiz-band-copy h2,
  .quiz-step h3 {
    max-width: none;
  }

  .hero-gallery-stage,
  .hero-gallery-stage img {
    min-height: 260px;
  }

  .hero-gallery-nav {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .hero-gallery-thumb,
  .gallery-lightbox-thumb {
    width: 82px;
    height: 62px;
  }

  .collection-hero-copy {
    padding-right: 24px;
  }

  .collection-hero-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .collection-title-emoji {
    margin-top: 6px;
    font-size: 40px;
  }

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

  .collection-range-grid {
    grid-template-columns: 1fr;
  }

  .collection-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .collection-filter-actions .button {
    width: 100%;
  }

  .section-head,
  .split-head,
  .pagination {
    align-items: start;
    flex-direction: column;
  }

  .error-page-panel {
    padding: 24px;
  }

  .error-page-links {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    margin: 12px auto;
    padding: 18px;
    border-radius: 24px;
  }

  .gallery-lightbox-topline {
    display: grid;
    gap: 6px;
    padding-right: 56px;
  }

  .gallery-lightbox-stage img {
    max-height: calc(100vh - 220px);
  }

  .gallery-lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .search-field input,
  .filter-chip span {
    font-size: 16px;
  }
}

@media (max-width: 680px) {
  .news-masthead-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .related-news-grid {
    grid-template-columns: 1fr;
  }
}
