:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-2: #EEF2F6;
  --text: #151719;
  --muted: #68717B;
  --border: #D8DEE6;
  --accent: #CF3E6A;
  --accent-hover: #A92D53;
  --gold: #B9985D;
  --ok: #4E7C61;
  --shadow: 0 18px 44px rgba(21, 23, 25, .10);
  --radius: 8px;
  --max-width: 1180px;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 250, .94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.header-grid {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  white-space: nowrap;
}
.brand-logo {
  width: min(220px, 46vw);
  height: auto;
  flex: 0 0 auto;
}
.brand-text {
  display: grid;
  gap: 0;
  line-height: 1;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
}
.brand-subtitle {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin-top: -2px;
}
.top-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.top-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 7px 8px;
  transition: background .18s, border-color .18s, color .18s;
}
.top-nav a:hover {
  color: var(--accent-hover);
  background: var(--surface);
  border-color: var(--border);
}
.top-nav a[aria-current="page"] {
  color: var(--accent-hover);
  background: var(--surface);
  border-color: var(--accent);
}
.top-nav span {
  color: var(--accent);
  font-weight: 700;
}
.btn {
  border: 1px solid transparent;
  border-radius: var(--radius);
  min-height: 42px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled {
  background: #CBBFC0;
  cursor: not-allowed;
  transform: none;
}
.btn-secondary {
  background: var(--surface);
  color: var(--accent-hover);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); }

.hero-main {
  padding: 92px 0 46px;
  border-bottom: 1px solid var(--border);
}
.hero-layout {
  display: block;
  text-align: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0;
  font-weight: 900;
}
h1 { font-size: clamp(42px, 5.8vw, 70px); max-width: 900px; }
.hero-title {
  max-width: 1120px;
  margin: 0 auto;
  font-size: clamp(58px, 7.4vw, 116px);
  line-height: .96;
}
.hero-title .accent-word {
  color: var(--accent);
}
h2 { font-size: clamp(30px, 3.6vw, 44px); }
.hero-copy p:not(.eyebrow), .city-hero p, .palette-lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 760px;
}
.hero-note {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}
.hero-copy p:not(.eyebrow) {
  margin: 30px auto 0;
  max-width: 800px;
  color: #7A665E;
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.city-strip {
  padding: 24px 0 28px;
  background:
    linear-gradient(115deg, rgba(37, 99, 235, .78), rgba(207, 62, 106, .72)),
    var(--accent);
  color: #fff;
}
.city-strip p {
  max-width: 980px;
  margin: 0 auto 20px;
  text-align: center;
  color: rgba(255, 255, 255, .94);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}
.city-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  transition: max-height .24s ease;
}
.city-pills.is-collapsed {
  max-height: 116px;
  overflow: hidden;
}
.city-pill {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: #8794AD;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(58, 43, 93, .12);
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.city-pill:hover,
.city-pill:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  color: var(--accent-hover);
  box-shadow: 0 16px 34px rgba(58, 43, 93, .18);
}
.city-pill strong {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(207, 62, 106, .1);
  color: var(--accent-hover);
  font-size: 13px;
}
.city-expand {
  display: block;
  margin: 22px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.city-expand::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.hero-panel {
  max-width: 780px;
  margin: 34px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 12px;
}
.hero-panel div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.hero-panel div:last-child { border-bottom: 0; }
.hero-panel strong {
  color: var(--accent-hover);
  font-size: 24px;
}
.hero-panel span {
  color: var(--muted);
  text-align: right;
}

.section { padding: 46px 20px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.city-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.city-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(91, 54, 65, .1);
  transform: translateY(-2px);
}
.city-card span {
  font-weight: 800;
  font-size: 18px;
}
.city-card small { color: var(--muted); margin-top: 4px; }
.city-more { margin-top: 18px; }
.split-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--border);
}
.split-info p, .seo-text p, .faq-lite p { color: var(--muted); }

.breadcrumbs {
  padding: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumbs a:hover { color: var(--accent); }
.city-hero {
  padding-top: 52px;
  padding-bottom: 18px;
}
.table-toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.filter-chip {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: var(--radius);
  min-height: 38px;
  padding: 8px 13px;
  font-weight: 750;
  cursor: pointer;
}
.filter-chip.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.filter-note {
  background: #FFF7E6;
  color: #755112;
  border: 1px solid #E9CA82;
  border-radius: var(--radius);
  padding: 12px 14px;
}
.table-sort-panel {
  display: none;
}
.studio-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.studio-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.legacy-table {
  min-width: 940px;
}
.studio-table th, .studio-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.studio-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  background: var(--surface-2);
}
.table-sort {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  padding: 0;
  text-transform: inherit;
}
.table-sort::after {
  content: "↓";
  display: inline-block;
  margin-left: 5px;
  opacity: .55;
}
.table-sort[data-sort-direction="asc"]::after { content: "↑"; opacity: 1; }
.table-sort[data-sort-direction="desc"]::after { opacity: 1; }
.table-sort:hover,
.table-sort:focus-visible {
  color: var(--accent-hover);
}
.studio-table tr:last-child td { border-bottom: 0; }
.studio-table a { color: var(--accent-hover); font-weight: 650; }
.studio-table .site-address {
  display: inline-block;
  max-width: 320px;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.25;
}
.table-title {
  display: block;
  color: var(--text) !important;
  font-size: 16px;
  font-weight: 800 !important;
}
.studio-table small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.muted { color: var(--muted); }

.faq-lite {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.faq-lite details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.faq-lite summary {
  cursor: pointer;
  font-weight: 800;
}

.studio-profile {
  padding-top: 52px;
  padding-bottom: 34px;
  max-width: 980px;
}
.studio-profile p,
.studio-landing p { color: var(--muted); font-size: 17px; }
.studio-profile__lead {
  max-width: 760px;
  margin-bottom: 0;
}
.studio-landing {
  padding-top: 52px;
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr);
  gap: 24px;
  align-items: stretch;
}
.studio-landing__copy {
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 14%, rgba(207, 62, 106, .10), transparent 30%),
    radial-gradient(circle at 0 100%, rgba(37, 99, 235, .07), transparent 34%),
    var(--surface);
  padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--shadow);
}
.studio-landing__copy::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -54px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 28px solid rgba(207, 62, 106, .06);
  pointer-events: none;
}
.studio-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}
.studio-hero-tags span {
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 11px;
}
.studio-summary {
  background:
    linear-gradient(145deg, rgba(207, 62, 106, .09), rgba(185, 152, 93, .08)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  align-content: start;
}
.studio-summary__title {
  font-size: 20px;
  line-height: 1.15;
}
.studio-summary__grid {
  display: grid;
  gap: 10px;
}
.studio-summary__grid div {
  min-height: 76px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
}
.studio-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.studio-summary strong {
  color: var(--text);
  font-size: 18px;
}
.studio-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 8px;
  padding-bottom: 18px;
}
.studio-path div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  min-height: 162px;
  box-shadow: 0 12px 28px rgba(21, 23, 25, .07);
}
.studio-path strong {
  display: block;
  color: var(--accent-hover);
  font-size: 18px;
  margin-bottom: 8px;
}
.studio-path p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.studio-path__cta {
  width: 100%;
  margin-top: 14px;
}
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  align-self: start;
  box-shadow: var(--shadow);
}
.profile-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 0 0 18px;
}
.profile-card dt { color: var(--muted); }
.profile-card dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}
.profile-tags, .contact-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.profile-tags span, .contact-stack a, .studio-actions a, .studio-actions .muted {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--accent-hover);
  font-weight: 800;
}
.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}
.studio-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.studio-story {
  max-width: var(--max-width);
}
.studio-content {
  display: grid;
  gap: 16px;
}
.studio-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 12px 30px rgba(21, 23, 25, .07);
}
.studio-section--main {
  background:
    linear-gradient(135deg, rgba(207, 62, 106, .06), rgba(185, 152, 93, .06)),
    var(--surface);
}
.studio-section--soft {
  background: #FBF6F8;
}
.studio-section--warning {
  background: #FFF8EF;
  border-color: #E9D6B8;
}
.studio-section h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 14px;
}
.studio-section p {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 16px;
}
.studio-section p:last-child {
  margin-bottom: 0;
}
.studio-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.studio-checklist {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
}
.studio-checklist li::marker {
  color: var(--accent);
}

.site-footer {
  margin-top: 40px;
  padding: 38px 0 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1.2fr minmax(260px, 1fr);
  gap: 28px;
}
.footer-grid p, .footer-bottom {
  color: var(--muted);
  font-size: 14px;
}
.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.footer-grid strong { margin-bottom: 3px; color: var(--text); }
.footer-grid a:hover { color: var(--accent); }
.footer-cta {
  display: grid;
  align-content: start;
  gap: 10px;
}
.footer-cta p {
  margin: 0;
}
.footer-cta .btn {
  width: max-content;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 16px;
  display: grid;
  gap: 8px;
  font-size: 12px;
}
.footer-info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.footer-info-links a {
  color: var(--muted);
}

.city-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 26px;
  align-items: center;
}
.city-story__text {
  max-width: 760px;
}
.city-story__text p {
  color: var(--muted);
}
.city-story__figure {
  margin: 0;
  align-self: end;
}
.city-story__figure img {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin-left: auto;
}

.lead-modal[hidden] { display: none; }
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}
.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 17, .55);
}
.lead-modal__panel {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 22px;
}
.lead-modal__panel h2 {
  margin-right: 36px;
  font-size: clamp(32px, 4vw, 42px);
}
.lead-modal__panel p { color: var(--muted); }
.icon-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 22px;
}
.model-form {
  display: grid;
  gap: 10px;
}
.model-form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.model-form legend {
  color: var(--muted);
  font-weight: 800;
  padding: 0 6px;
}
.field-label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}
.field-label span { color: var(--accent); }
.field-label input, .field-label textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}
.field-label textarea {
  min-height: 88px;
}
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.check-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text);
  font-weight: 650;
}
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.legacy-hero {
  padding-bottom: 26px;
}
.legacy-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.legacy-summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface);
  color: var(--muted);
}
.legacy-summary strong {
  color: var(--text);
  font-size: 22px;
}
.legacy-table th:first-child,
.legacy-table td:first-child {
  width: 48px;
  text-align: center;
  color: var(--muted);
}
.text-link-row {
  margin-top: 16px;
  font-weight: 800;
}
.text-link-row a {
  color: var(--accent-strong);
}

.article-page {
  padding-top: 52px;
  padding-bottom: 18px;
}
.article-hero {
  max-width: 900px;
}
.article-hero h1 {
  max-width: 980px;
}
.article-hero p {
  color: var(--muted);
  font-size: 19px;
  max-width: 820px;
}
.seo-figure {
  margin: 28px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.seo-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
}
.legacy-city-figure {
  background: linear-gradient(180deg, #fff 0%, #fff7f4 100%);
}
.legacy-city-figure img {
  aspect-ratio: 760 / 327;
  object-fit: contain;
  padding: clamp(10px, 2vw, 18px);
}
.seo-figure figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  margin-top: 34px;
  align-items: start;
}
.article-content {
  display: grid;
  gap: 22px;
}
.article-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.article-section h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 14px;
}
.article-section p {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 16px;
}
.article-section p:last-child {
  margin-bottom: 0;
}
.article-section ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--text);
}
.article-section li {
  margin: 7px 0;
}
.article-checklist {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
}
.article-aside {
  position: sticky;
  top: 94px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.article-aside strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}
.article-aside p {
  color: var(--muted);
  font-size: 14px;
}
.article-aside .btn {
  width: 100%;
  margin-top: 8px;
}

.palette-page h1 { font-size: clamp(38px, 5vw, 62px); }
.palette-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.palette-card {
  background: var(--p-bg);
  color: var(--p-text);
  border: 1px solid color-mix(in srgb, var(--p-text) 12%, transparent);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.palette-card p { color: color-mix(in srgb, var(--p-text) 70%, transparent); }
.palette-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
}
.palette-nav button {
  background: var(--p-accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-weight: 800;
}
.mini-table {
  display: grid;
  grid-template-columns: 1.5fr .5fr .6fr;
  gap: 1px;
  margin-top: auto;
  background: color-mix(in srgb, var(--p-text) 16%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
}
.mini-table > * {
  background: var(--p-surface);
  padding: 10px;
}
.swatches {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.swatches i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--p-text) 20%, transparent);
}

@media (max-width: 900px) {
  .header-grid { grid-template-columns: 1fr auto; }
  .top-nav { grid-column: 1 / -1; justify-content: flex-start; padding-bottom: 14px; }
  .hero-layout, .split-info, .studio-profile, .studio-landing, .studio-path, .studio-two-col, .footer-grid, .article-layout, .city-story { grid-template-columns: 1fr; }
  .city-story__figure img { margin: 0 auto; }
  .article-aside { position: static; }
  .palette-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .site-header,
  main,
  .site-footer,
  .container {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
  }
  .site-header { position: static; }
  .container, .section { padding-left: 14px; padding-right: 14px; }
  .hero-main { padding-top: 42px; }
  .city-hero { padding-top: 36px; }
  .studio-landing { padding-top: 34px; gap: 18px; }
  .studio-landing,
  .studio-landing__copy,
  .studio-summary,
  .studio-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .studio-landing {
    margin-left: 0;
    margin-right: 0;
  }
  .studio-landing__copy {
    width: calc(100vw - 28px);
    max-width: 350px;
    margin-left: 0;
    margin-right: 0;
    padding: 20px;
    border-radius: 14px;
    display: block;
  }
  .studio-landing__copy > * {
    max-width: calc(100vw - 68px);
  }
  .studio-landing__copy h1 {
    font-size: 37px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .studio-landing p,
  .studio-section p,
  .studio-checklist li {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }
  .studio-hero-tags { margin-top: 14px; }
  .studio-hero-tags span { font-size: 12px; padding: 6px 9px; }
  .studio-summary { padding: 14px; box-shadow: none; border-radius: 14px; }
  .studio-summary,
  .studio-section {
    width: calc(100vw - 28px);
    max-width: 350px;
    margin-left: 0;
    margin-right: 0;
  }
  .studio-summary__grid { grid-template-columns: 1fr; }
  .studio-summary__grid div { min-height: 0; padding: 10px 12px; }
  .studio-path div { min-height: 0; }
  .studio-section { border-radius: 14px; padding: 18px; }
  .studio-section h2 { font-size: 28px; }
  .studio-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .studio-actions a,
  .studio-actions .muted,
  .studio-actions .btn {
    width: 100%;
    justify-content: center;
  }
  h1 { font-size: 40px; }
  .hero-title { font-size: 46px; }
  .hero-copy p:not(.eyebrow) { font-size: 20px; }
  .brand-logo { width: min(190px, 58vw); }
  .brand-title { font-size: 20px; }
  .brand-subtitle { font-size: 17px; }
  .header-grid {
    gap: 12px;
    min-width: 0;
    max-width: 100%;
  }
  .top-nav {
    gap: 8px;
    min-width: 0;
    width: calc(100vw - 28px);
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav a {
    flex: 0 0 auto;
    padding: 6px 8px;
    white-space: nowrap;
  }
  .hero-actions .btn { width: 100%; }
  .city-grid { grid-template-columns: 1fr; }
  .model-form fieldset { display: grid; }
  .table-toolbar { padding: 8px; }
  .filter-chip { min-height: 36px; padding: 7px 10px; }
  .table-sort-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    margin: 10px 0;
  }
  .table-sort-panel .table-sort {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    min-height: 34px;
    padding: 7px 11px;
    letter-spacing: 0;
    text-transform: none;
  }
  .studio-table-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
  }
  .studio-table {
    display: block;
    min-width: 0;
  }
  .studio-table thead { display: none; }
  .studio-table tbody {
    display: grid;
    gap: 10px;
  }
  .studio-table tr {
    display: grid;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
  .studio-table th,
  .studio-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
  }
  .studio-table tr:last-child td { border-bottom: 1px solid var(--border); }
  .studio-table tr td:last-child { border-bottom: 0; }
  .studio-table td::before {
    color: var(--muted);
    content: "";
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .studio-table td:nth-child(1) {
    display: block;
    padding-top: 13px;
  }
  .studio-table td:nth-child(1)::before { content: none; }
  .studio-table td:nth-child(2)::before { content: "Выплаты"; }
  .studio-table td:nth-child(3)::before { content: "Сайт"; }
  .studio-table td:nth-child(4)::before { content: "Контакт"; }
  .studio-table td:nth-child(5)::before { content: "Оценка"; }
  .studio-table td:nth-child(2),
  .studio-table td:nth-child(5) {
    text-align: left;
  }
  .studio-table a,
  .studio-table .site-address {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .table-title { font-size: 17px; }
  .studio-table small { font-size: 13px; }
  .city-story { gap: 12px; }
  .city-story__figure img { width: min(100%, 360px); }
}
