:root {
  --bg: #f3f2ee;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #77746d;
  --line: rgba(17, 17, 17, 0.18);
  --soft-line: rgba(17, 17, 17, 0.09);
  --panel: #ebebe5;
  --accent: #8d72f7;
  --accent-2: #d9ccff;
  --accent-button-ink: #10120e;
  --danger: #b42318;
  --shadow: 0 28px 80px rgba(17, 17, 17, 0.12);
  --heading-gap: clamp(26px, 4vw, 50px);
  --mono: "Courier New", Courier, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --bg: #171817;
  --paper: #22231f;
  --ink: #f4f1e8;
  --muted: #aba79c;
  --line: rgba(244, 241, 232, 0.2);
  --soft-line: rgba(244, 241, 232, 0.1);
  --panel: #111210;
  --accent: #d6c7ff;
  --accent-2: #a88cff;
  --accent-button-ink: #ffffff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(141, 114, 247, 0.1), transparent 24rem),
    linear-gradient(180deg, var(--bg), var(--bg));
  font-family: var(--sans);
  max-width: 100%;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-inline-start: 0;
  text-align: left;
}

img,
video {
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--soft-line);
  backdrop-filter: blur(18px);
}

.brand,
.nav button,
.icon-button,
.contact-pill,
.ghost-button,
.primary-button,
.choice-card,
.category-links button,
.work-card,
.case-row,
.article-card {
  border: 0;
  background: transparent;
  text-decoration: none;
}

.brand {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
  font-family: var(--mono);
  font-weight: 800;
  text-transform: uppercase;
}

.brand img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
}

.nav button {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  transition: background 160ms ease, color 160ms ease;
}

.nav button:hover,
.nav button.is-active {
  color: var(--ink);
  background: var(--paper);
}

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

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.mobile-menu {
  display: none;
}

.contact-pill,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
}

.contact-pill,
.primary-button {
  color: var(--accent-button-ink);
  background: var(--accent-2);
}

.ghost-button {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 58%, transparent);
}

.danger {
  color: var(--danger);
}

.section-pad {
  width: min(100%, 1720px);
  margin-inline: auto;
  padding: clamp(42px, 7vw, 96px) clamp(18px, 4vw, 56px);
}

.micro-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(11px, 1.15vw, 13px);
  text-transform: uppercase;
}

.hero {
  padding-top: clamp(28px, 5vw, 56px);
}

.hero h1,
.page-head h1 {
  display: block;
  margin: 0;
  padding: 0;
  text-align: left;
  letter-spacing: 0;
  line-height: 0.82;
  color: var(--accent);
  font-size: clamp(68px, 11.8vw, 214px);
  font-weight: 500;
  max-width: 100%;
  overflow-wrap: normal;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.3fr);
  gap: clamp(18px, 3.6vw, 56px);
  align-items: start;
  margin-top: var(--heading-gap);
}

.hero-grid > *,
.split-feature > *,
.case-teaser > *,
.contacts-layout > *,
.about-layout > *,
.case-hero > *,
.post-detail > *,
.hero-copy,
.case-teaser-copy,
.contact-card-main,
.post-hero {
  min-width: 0;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-title {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 22px;
  text-align: left;
  color: var(--ink);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h2,
.split-feature h2,
.case-teaser-copy h2,
.contact-card-main h2,
.post-hero h1,
.case-hero h1 {
  margin: 0;
  max-width: 780px;
  line-height: 0.98;
  font-size: clamp(38px, 6vw, 92px);
  font-weight: 650;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.hero-copy p,
.case-teaser-copy p,
.contact-card-main p,
.post-hero p,
.case-hero p {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.proof-row,
.filter-row,
.emoji-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proof-row span,
.filter-row button,
.skills-panel span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--paper) 48%, transparent);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.visual-panel {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1a1b18;
  box-shadow: var(--shadow);
}

.visual-panel img,
.visual-panel video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.visual-card {
  aspect-ratio: 3 / 4;
}

.visual-marketplace {
  aspect-ratio: 3 / 4;
}

.visual-wide {
  aspect-ratio: 16 / 10;
}

.visual-portrait {
  aspect-ratio: 3 / 4;
}

.generated-visual {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 2.8vw, 34px);
  color: #f5f3ea;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.13), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 72% 32%, rgba(174, 142, 255, 0.38), transparent 18rem),
    #171817;
}

.generated-visual span,
.generated-visual em {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
}

.generated-visual strong {
  max-width: 100%;
  font-size: clamp(22px, 3.25vw, 54px);
  line-height: 0.88;
  text-wrap: balance;
  text-transform: uppercase;
}

.categories-section {
  padding-top: 18px;
}

.category-links {
  display: grid;
  grid-template-columns: 1fr;
}

.category-links button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(58px, 8vw, 78px);
  padding: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(24px, 4.4vw, 52px);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color 160ms ease, padding 160ms ease;
}

.category-links button:last-child {
  border-bottom: 1px solid var(--line);
}

.category-links button:hover {
  padding-left: 14px;
  color: var(--accent);
}

.category-links.compact {
  margin-top: 44px;
}

.category-links.compact button {
  min-height: 56px;
  font-size: clamp(22px, 3.4vw, 38px);
}

.split-feature,
.case-teaser,
.contacts-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(18px, 4vw, 56px);
  align-items: start;
}

.choice-grid,
.work-choice-large,
.blog-grid,
.post-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.choice-card,
.work-choice-large button {
  min-height: 280px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 2px;
}

.editor-toolbar button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 76%, transparent);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.choice-card:hover,
.work-card:hover,
.case-row:hover,
.article-card:hover,
.work-choice-large button:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  box-shadow: var(--shadow);
}

.choice-card span,
.work-choice-large strong {
  display: block;
  margin: 34px 0 12px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.95;
  font-weight: 650;
}

.choice-card .mini-icon,
.article-visual .mini-icon,
.price-placeholder .mini-icon,
.empty-state .mini-icon,
.profile-icon {
  display: inline-grid;
  margin: 0;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 21px;
  line-height: 1;
}

.row-arrow {
  font-size: 28px;
}

.choice-card small,
.work-choice-large small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.showcase-preview {
  padding-top: 24px;
}

.work-choice-large,
.page-head h1 + .blog-grid,
.page-head h1 + .case-list {
  margin-top: var(--heading-gap);
}

.about-page .page-head,
.contacts-page .page-head {
  margin-bottom: var(--heading-gap);
}

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

.work-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 0;
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.work-card.is-wide {
  grid-column: auto;
}

.work-meta {
  display: grid;
  gap: 4px;
  padding: 0 2px 8px;
}

.work-meta strong {
  font-size: clamp(17px, 2vw, 22px);
}

.work-meta small,
.slide-count,
.case-row-copy small,
.article-card small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.slide-count {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #f7f6ef;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px);
}

.filter-row {
  margin: var(--heading-gap) 0 28px;
}

.filter-row button {
  cursor: pointer;
}

.filter-row button.is-active {
  color: var(--accent-button-ink);
  border-color: var(--accent-2);
  background: var(--accent-2);
}

.case-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.case-row {
  display: grid;
  grid-template-columns: 70px minmax(220px, 0.7fr) 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.case-index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 800;
}

.case-row-copy {
  display: grid;
  gap: 9px;
}

.case-row-copy strong {
  font-size: clamp(26px, 4vw, 54px);
  line-height: 0.96;
}

.case-row-copy em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.case-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 4vw, 56px);
  align-items: center;
}

.case-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 52px;
}

.info-block {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.info-block h2,
.comments-block h2,
.reactions-block h2,
.skills-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  text-transform: uppercase;
}

.info-block p,
.post-body p,
.rich-text p,
.rich-text li,
.comment-card p {
  color: var(--muted);
  line-height: 1.65;
}

.rich-text {
  display: grid;
  gap: 18px;
}

.rich-text p,
.rich-text ul,
.rich-text blockquote,
.rich-text h2,
.rich-text h3 {
  margin: 0;
}

.rich-text h2,
.rich-text h3 {
  color: var(--ink);
  letter-spacing: 0;
}

.rich-text h2 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.rich-text h3 {
  margin-top: 4px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.08;
}

.rich-text ul {
  display: grid;
  gap: 8px;
  padding-left: 1.1em;
}

.rich-text strong {
  color: var(--ink);
}

.rich-text em {
  color: var(--ink);
}

.rich-text hr {
  width: 100%;
  margin: 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.tg-quote {
  position: relative;
  padding: 14px 16px 14px 20px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 46%, var(--line));
  border-radius: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent-2) 14%, var(--paper));
  line-height: 1.55;
}

.tg-quote::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 9px;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.tg-quote-accent {
  padding: 18px 20px 18px 26px;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 650;
  line-height: 1.25;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.price-image {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.article-card {
  display: grid;
  gap: 12px;
  min-height: 320px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-cover,
.post-cover,
.case-media,
.rich-media {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.article-cover,
.post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.case-media {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.rich-media {
  width: min(100%, 820px);
  justify-self: center;
  display: grid;
  gap: 10px;
  border: 0;
  background: transparent;
}

.rich-media-frame {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.article-cover img,
.article-cover video,
.post-cover img,
.post-cover video,
.case-media img,
.case-media video,
.rich-media-frame img,
.rich-media-frame video,
.article-visual {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
  object-fit: cover;
}

.article-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  color: #f5f3ea;
  background:
    linear-gradient(135deg, rgba(174, 142, 255, 0.3), transparent),
    #171817;
}

.article-card strong {
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1;
}

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

.post-detail {
  max-width: 1060px;
  margin: 0 auto;
}

.post-hero {
  margin-bottom: 34px;
}

.post-body {
  display: grid;
  gap: 22px;
  font-size: 19px;
}

.post-body .rich-text {
  gap: 20px;
}

.case-story {
  display: grid;
  gap: 18px;
  margin-top: 52px;
}

.case-story .rich-text {
  gap: 20px;
}

.rich-media figcaption {
  padding: 10px 14px 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.reactions-block,
.comments-block {
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.emoji-row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 78px;
  min-height: 44px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 20px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.emoji-row button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.emoji-row button.is-selected {
  border-color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 22%, var(--paper));
}

.emoji-row button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.emoji-row strong {
  font-size: 14px;
}

.reaction-note {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comments-head span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.comment-form,
.request-form {
  display: grid;
  gap: 10px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.comment-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.comment-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(280px, 1.35fr);
  gap: clamp(34px, 5vw, 82px);
  align-items: start;
  margin-top: 0;
}

.profile-visual {
  min-height: 430px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.profile-visual img,
.profile-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-page .page-head {
  margin-bottom: var(--heading-gap);
}

.about-page .page-head h1 {
  font-size: clamp(56px, 10vw, 176px);
  line-height: 0.88;
  overflow-wrap: anywhere;
}

.photo-placeholder {
  display: grid;
  height: 100%;
  min-height: 430px;
  place-items: center;
  color: var(--muted);
}

.photo-placeholder span {
  margin-top: -120px;
  font-family: var(--mono);
  text-transform: uppercase;
}

.about-copy p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.52;
}

.skills-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.skills-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-card-main,
.request-form,
.services-block {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-card-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.request-form small {
  color: var(--muted);
  line-height: 1.45;
}

.services-block {
  margin-top: 18px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.service-list article {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 68%, transparent);
}

.service-list span,
.price-placeholder span {
  color: var(--muted);
  line-height: 1.45;
}

.price-image,
.price-placeholder {
  margin-top: 16px;
}

.price-placeholder,
.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.admin-note {
  max-width: 880px;
  margin-top: var(--heading-gap);
  color: var(--muted);
  line-height: 1.55;
}

.admin-save-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 64%, var(--line));
  border-radius: 999px;
  color: var(--accent-button-ink);
  background: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  animation: notice-in 180ms ease both;
}

.admin-save-notice::before {
  content: "✓";
}

@keyframes notice-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}

.admin-tabs button,
.entity-list-head button,
.sortable-list button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.admin-tabs button.is-active {
  color: var(--accent-button-ink);
  border-color: var(--accent-2);
  background: var(--accent-2);
}

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

.admin-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.span-2 {
  grid-column: 1 / -1;
}

.admin-panel,
.entity-editor {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.inline-editor {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.sortable-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.sortable-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.sortable-list article div {
  display: flex;
  gap: 6px;
}

.entity-editor {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 18px;
}

.entity-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.entity-list-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.entity-list-head h2 {
  margin: 0;
}

.entity-list > button {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--ink);
  text-align: left;
}

.entity-list > button.is-active {
  border-color: var(--accent);
}

.entity-list small {
  color: var(--muted);
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-transform: none;
}

.checkbox-grid input {
  width: auto;
}

.image-input {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--ink) !important;
  background: color-mix(in srgb, var(--bg) 52%, transparent);
}

.image-input input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.image-strip span {
  position: relative;
  display: block;
  width: 92px;
  height: 72px;
  overflow: hidden;
}

.image-strip img,
.image-strip video {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.image-strip button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
}

.image-strip .thumb-insert {
  top: auto;
  right: auto;
  left: 4px;
  bottom: 4px;
  width: auto;
  height: auto;
  padding: 0 8px;
  min-height: 20px;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.form-actions,
.admin-comments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px 330px;
  gap: 16px;
  align-items: center;
  padding: 22px;
  color: #f8f6ed;
  background: rgba(8, 8, 7, 0.88);
  backdrop-filter: blur(18px);
}

.lightbox-stage {
  display: grid;
  place-items: center;
  min-width: 0;
}

.lightbox-stage img,
.lightbox-stage video,
.lightbox-stage .visual-panel {
  max-height: 82vh;
  width: min(100%, 1100px);
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #f8f6ed;
  background: rgba(255, 255, 255, 0.08);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
}

.lightbox-nav {
  justify-self: center;
  width: 54px;
  height: 54px;
}

.lightbox-info {
  display: grid;
  gap: 12px;
  align-self: end;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.lightbox-info small,
.lightbox-info span {
  color: rgba(248, 246, 237, 0.72);
  font-family: var(--mono);
  text-transform: uppercase;
}

.lightbox-info strong {
  font-size: 28px;
  line-height: 1;
}

.lightbox-info p {
  margin: 0;
  color: rgba(248, 246, 237, 0.72);
  line-height: 1.5;
}

.footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px) 84px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.footer div {
  display: grid;
  gap: 6px;
}

.footer strong {
  color: var(--ink);
}

.footer button,
.footer a {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
}

.floating-socials {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.floating-socials a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: var(--bg);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-list,
  .case-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lightbox {
    grid-template-columns: 58px minmax(0, 1fr) 58px;
  }

  .lightbox-info {
    grid-column: 1 / -1;
    align-self: auto;
  }
}

@media (max-width: 820px) {
  .header {
    grid-template-columns: auto auto;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: none;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    border-radius: 14px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav.nav-open {
    display: flex;
  }

  .nav button {
    text-align: left;
  }

  .header-actions {
    justify-self: end;
  }

  .mobile-menu {
    display: inline-grid;
  }

  .contact-pill {
    display: none;
  }

  .micro-row {
    flex-direction: column;
  }

  .hero h1,
  .page-head h1 {
    font-size: clamp(58px, 18vw, 132px);
  }

  .hero-grid,
  .split-feature,
  .case-teaser,
  .contacts-layout,
  .about-layout,
  .case-hero,
  .entity-editor {
    grid-template-columns: 1fr;
  }

  .choice-grid,
  .work-choice-large,
  .post-row,
  .blog-grid,
  .case-gallery,
  .service-list,
  .case-sections,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

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

  .work-card.is-wide {
    grid-column: span 2;
  }

  .case-row {
    grid-template-columns: 1fr;
  }

  .inline-editor {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 14px;
  }

  .lightbox-stage img,
  .lightbox-stage .visual-panel {
    max-height: 62vh;
  }
}

@media (max-width: 540px) {
  .section-pad {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .work-card.is-wide {
    grid-column: auto;
  }

  .choice-card,
  .work-choice-large button {
    min-height: 220px;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    align-content: center;
  }

  .lightbox-stage {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .lightbox-nav {
    grid-row: 2;
  }

  .lightbox-info {
    grid-row: 3;
  }
}
