@import "tailwindcss";

:root {
  --milk: #f2eee6;
  --paper: #fbfaf7;
  --graphite: #191919;
  --muted: #77736c;
  --line: #c8c2b7;
  --cobalt: #2448ff;
  --cobalt-dark: #1433d5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--milk);
  color: var(--graphite);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--cobalt);
  color: white;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
  padding: 0 3vw;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--milk) 92%, transparent);
  backdrop-filter: blur(16px);
}

.wordmark {
  justify-self: start;
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.wordmark span {
  color: var(--cobalt);
}

.desktop-nav {
  display: flex;
  gap: clamp(0.85rem, 1.6vw, 2rem);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.desktop-nav a {
  position: relative;
  padding: 0.5rem 0;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--cobalt);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-menu {
  display: none;
}

.header-telegram {
  justify-self: end;
  border-bottom: 1px solid var(--graphite);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: calc(100svh - 74px);
  padding: 2.2rem 3vw 2.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 5.5vh 0 3.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8.4vw, 8.3rem);
  font-weight: 400;
  line-height: 0.83;
  letter-spacing: -0.073em;
}

.hero h1 em {
  color: var(--cobalt);
  font-weight: 400;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  gap: 3rem;
  align-items: end;
}

.hero-bottom > p {
  margin: 0;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--graphite);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: white;
}

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

.button-secondary:hover {
  background: var(--graphite);
  color: white;
}

.hero-mark {
  position: absolute;
  right: -3vw;
  bottom: -7vw;
  z-index: 0;
  display: flex;
  align-items: center;
  color: color-mix(in srgb, var(--cobalt) 9%, transparent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15rem, 38vw, 39rem);
  line-height: 0.65;
  pointer-events: none;
}

.hero-mark i {
  width: 14vw;
  height: 14vw;
  border: 1px solid color-mix(in srgb, var(--cobalt) 28%, transparent);
  border-radius: 50%;
}

.manifesto {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3rem;
  padding: clamp(5rem, 10vw, 10rem) 3vw;
  border-bottom: 1px solid var(--line);
}

.section-label {
  margin: 0;
  color: var(--cobalt);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.manifesto-copy {
  max-width: 920px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.6vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.manifesto-copy strong {
  color: var(--cobalt);
  font-weight: 400;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.direction-card {
  min-height: 310px;
  padding: 2.1rem 1.7rem;
  border-right: 1px solid var(--line);
  background: var(--paper);
  transition:
    background 220ms ease,
    color 220ms ease;
}

.direction-card:last-child {
  border-right: 0;
}

.direction-card > span {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.direction-card h2 {
  margin: 5.5rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.7vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.direction-card p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.direction-card:hover {
  background: var(--cobalt);
  color: white;
}

.direction-card:hover > span,
.direction-card:hover p {
  color: white;
}

.section-shell {
  padding: clamp(5rem, 9vw, 9rem) 3vw;
  border-bottom: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: clamp(3.5rem, 7vw, 7rem);
}

.section-intro h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6.2vw, 6.5rem);
  font-weight: 400;
  line-height: 0.91;
  letter-spacing: -0.06em;
}

.section-intro h2 em,
.services-intro h2 em {
  color: var(--cobalt);
  font-weight: 400;
}

.section-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.category-filter button,
.selector-options button {
  min-height: 42px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--graphite);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.category-filter button:hover,
.category-filter button:focus-visible,
.category-filter button.active,
.selector-options button:hover,
.selector-options button:focus-visible,
.selector-options button.active {
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: white;
}

.product-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product-row {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) 2.2fr;
  min-height: 390px;
  background: var(--paper);
}

.product-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 1.5rem;
  overflow: hidden;
  background: var(--graphite);
  background-position: center;
  background-size: cover;
  color: white;
}

.has-cover-image::after,
.has-case-image::before,
.has-case-image::after {
  display: none;
}

.product-cover::after {
  position: absolute;
  right: -16%;
  bottom: -22%;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.32;
}

.product-cover > span,
.product-cover > strong {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.product-cover > b {
  position: relative;
  z-index: 1;
  max-width: 90%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.6rem);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.tone-cobalt .product-cover {
  background: var(--cobalt);
}

.tone-paper .product-cover {
  background: #d9d2c5;
  color: var(--graphite);
}

.tone-blue .product-cover {
  background: #143b72;
}

.tone-warm .product-cover {
  background: #b95c43;
}

.tone-red .product-cover {
  background: #ad2937;
}

.tone-violet .product-cover {
  background: #4f3a65;
}

.product-content {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 1.5rem;
  padding: clamp(1.8rem, 4vw, 4rem);
}

.product-category {
  color: var(--cobalt);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.product-badge {
  padding: 0.38rem 0.55rem;
  background: var(--cobalt);
  color: white;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-price {
  margin: 1.25rem 0 0 !important;
  color: var(--graphite) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem !important;
}

.product-content h3 {
  max-width: 760px;
  margin: 1rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.product-content > div:first-child > p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.product-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  animation: details-in 220ms ease both;
}

@keyframes details-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-details > div {
  padding: 1rem;
  background: var(--milk);
}

.product-details dt {
  margin-bottom: 0.45rem;
  color: var(--cobalt);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-details dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.product-actions {
  display: flex;
  gap: 0.7rem;
}

.product-actions button,
.product-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--graphite);
  background: transparent;
  color: var(--graphite);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.product-actions a {
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: white;
}

.product-actions button:hover,
.product-actions button:focus-visible {
  background: var(--graphite);
  color: white;
}

.product-actions a:hover,
.product-actions a:focus-visible {
  background: var(--cobalt-dark);
}

.services {
  background: var(--graphite);
  color: var(--paper);
}

.services-intro {
  grid-template-columns: 1fr 3fr;
}

.service-list {
  border-top: 1px solid #4b4b49;
}

.service-list article {
  display: grid;
  grid-template-columns: 0.3fr 1.3fr 1.3fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.7rem 0;
  border-bottom: 1px solid #4b4b49;
  transition: padding 200ms ease;
}

.service-list article:hover {
  padding-right: 0.8rem;
  padding-left: 0.8rem;
}

.service-list article > span {
  color: #8b8b87;
  font-size: 0.7rem;
}

.service-list h3 {
  margin: 0 0 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.8vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.service-list article div p,
.service-steps {
  margin: 0;
  color: #b8b7b2;
  font-size: 0.83rem;
  line-height: 1.5;
}

.service-list a {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--cobalt);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.case-list {
  display: grid;
  gap: clamp(5rem, 9vw, 9rem);
}

.case-study {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
}

.case-reverse {
  grid-template-columns: 0.65fr 1.35fr;
}

.case-reverse .case-visual {
  grid-column: 2;
  grid-row: 1;
}

.case-reverse .case-copy {
  grid-column: 1;
  grid-row: 1;
}

.case-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(430px, 54vw, 690px);
  padding: clamp(1.5rem, 3vw, 3rem);
  overflow: hidden;
  background: var(--cobalt);
  background-position: center;
  background-size: cover;
  color: white;
}

.case-visual::before,
.case-visual::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.case-visual::before {
  width: 44%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.45;
}

.case-visual::after {
  width: 1px;
  height: 72%;
  background: currentColor;
  opacity: 0.4;
  transform: rotate(28deg);
}

.case-visual > span,
.case-visual > b,
.case-visual > i {
  position: relative;
  z-index: 1;
}

.case-visual > span,
.case-visual > i {
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-visual > b {
  max-width: 90%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 9vw, 10rem);
  font-weight: 400;
  line-height: 0.75;
  letter-spacing: -0.085em;
  overflow-wrap: anywhere;
}

.case-sobranie {
  align-items: flex-end;
  background: #d4cab9;
  color: var(--graphite);
  text-align: right;
}

.case-sobranie::before {
  top: 12%;
  left: -5%;
  width: 72%;
}

.case-par {
  background: #1b1d21;
}

.case-par::before {
  top: 19%;
  right: -12%;
  width: 65%;
  border-radius: 0;
  transform: rotate(18deg);
}

.case-editorial {
  background: #b9473c;
}

.case-editorial::before {
  top: -10%;
  right: -5%;
  width: 82%;
}

.case-copy > span {
  color: var(--cobalt);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-copy h3 {
  margin: 1.2rem 0 3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 4vw, 4.3rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.case-copy dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.case-copy dl > div {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.case-copy dt {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-copy dd {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.55;
}

.selector {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1px;
  padding: 0;
  background: var(--line);
}

.selector-question,
.recommendation {
  padding: clamp(3rem, 7vw, 7rem) 3vw;
  background: var(--paper);
}

.selector-question h2 {
  margin: 2rem 0 3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 7vw, 7.5rem);
  font-weight: 400;
  line-height: 0.87;
  letter-spacing: -0.065em;
}

.selector-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.recommendation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cobalt);
  color: white;
}

.recommendation > span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recommendation h3 {
  margin: 3rem 0 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.recommendation p {
  max-width: 480px;
  margin: 0 0 3rem;
  font-size: 1rem;
  line-height: 1.6;
}

.recommendation a {
  align-self: flex-start;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 10vw, 11rem);
  align-items: center;
  background: var(--paper);
}

.about-monogram {
  display: grid;
  aspect-ratio: 0.85;
  place-items: center;
  background: var(--graphite);
  color: var(--cobalt);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(11rem, 28vw, 29rem);
  line-height: 0.8;
}

.about-copy h2 {
  margin: 2.2rem 0 3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.about-copy > p:not(.section-label) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.contact {
  background: var(--milk);
}

.contact h2 {
  margin: 3rem 0 5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7.7vw, 8.2rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.contact h2 em {
  color: var(--cobalt);
  font-weight: 400;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  padding: 1.4rem 0;
  border-top: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 700;
}

.contact-link span {
  color: var(--cobalt);
}

.contact-links {
  display: grid;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: center;
  padding: 2rem 3vw;
  background: var(--graphite);
  color: white;
}

footer p {
  margin: 0;
  color: #aaa9a5;
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-contacts {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 30;
  display: flex;
  gap: 0.5rem;
}

.floating-contacts a {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid white;
  border-radius: 50%;
  background: var(--cobalt);
  color: white;
  box-shadow: 0 10px 32px rgb(36 72 255 / 24%);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: transform 180ms ease;
}

.floating-contacts a:last-child {
  width: 58px;
  background: var(--graphite);
}

.floating-contacts a:hover,
.floating-contacts a:focus-visible {
  transform: translateY(-3px) rotate(-6deg);
}

.blog-preview {
  background: var(--paper);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.article-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  background: var(--paper);
  transition: background 180ms ease;
}

.article-card:hover,
.article-card:focus-visible {
  background: var(--milk);
}

.article-image {
  height: 210px;
  margin: calc(clamp(1.4rem, 3vw, 2.6rem) * -1);
  margin-bottom: 2rem;
  background-position: center;
  background-size: cover;
}

.article-card > span:not(.article-image) {
  color: var(--cobalt);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-card h2,
.article-card h3 {
  margin: 2rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

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

.article-card b {
  margin-top: auto;
  color: var(--cobalt);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-empty {
  display: grid;
  min-height: 230px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--milk);
  text-align: center;
}

.blog-empty p {
  max-width: 480px;
  padding: 2rem;
  color: var(--muted);
  line-height: 1.6;
}

.blog-all-link {
  margin-top: 2rem;
}

.inner-page {
  min-height: 100vh;
  background: var(--paper);
}

.inner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  padding: 0 3vw;
  border-bottom: 1px solid var(--line);
}

.inner-header > a:last-child {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inner-hero {
  padding: clamp(4rem, 9vw, 9rem) 3vw;
  border-bottom: 1px solid var(--line);
}

.inner-hero h1,
.article-page > header h1 {
  max-width: 1200px;
  margin: 2rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 8vw, 8.5rem);
  font-weight: 400;
  line-height: 0.87;
  letter-spacing: -0.07em;
}

.inner-hero h1 em {
  color: var(--cobalt);
  font-weight: 400;
}

.inner-hero > p:last-child {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.article-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 3vw;
}

.article-page > header > p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.6;
}

.article-hero-image {
  aspect-ratio: 16 / 9;
  margin: clamp(3rem, 7vw, 7rem) 0;
  background-position: center;
  background-size: cover;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
}

.article-body p {
  margin: 0 0 1.6rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.8;
}

.article-body h2 {
  margin: 4rem 0 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}

.article-body h3 {
  margin: 3rem 0 1rem;
  font-size: 1.35rem;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--graphite);
}

.article-footer a {
  color: var(--cobalt);
  font-weight: 800;
}

.admin-page {
  min-height: 100vh;
  background: #eeece7;
}

.admin-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 10;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  padding: 0 2vw;
  border-bottom: 1px solid #c8c2b7;
  background: rgb(251 250 247 / 96%);
}

.admin-header > div {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.admin-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-header nav {
  display: flex;
  gap: 1.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: calc(100vh - 78px);
}

.admin-tabs {
  display: flex;
  position: sticky;
  top: 78px;
  height: calc(100vh - 78px);
  flex-direction: column;
  padding: 2rem 1.2rem;
  border-right: 1px solid var(--line);
  background: var(--graphite);
}

.admin-tabs a {
  padding: 0.9rem 1rem;
  border: 0;
  border-bottom: 1px solid #41413f;
  background: transparent;
  color: #b9b8b3;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.admin-tabs a.active {
  background: var(--cobalt);
  color: white;
}

.admin-status {
  margin-top: auto;
  color: white;
  font-size: 0.75rem;
  line-height: 1.5;
}

.admin-workspace {
  padding: clamp(1.5rem, 4vw, 4rem);
}

.admin-form,
.admin-title,
.admin-items {
  max-width: 1000px;
}

.admin-title {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.admin-title span {
  color: var(--cobalt);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-title h1 {
  margin: 0.7rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.admin-title p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.admin-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.admin-field > span,
.admin-upload > span,
.admin-inline label > span {
  color: #5f5c56;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-field input,
.admin-field textarea,
.admin-inline input {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--graphite);
  font: inherit;
}

.admin-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

.admin-field textarea.large {
  min-height: 380px;
}

.admin-primary,
.admin-danger {
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cobalt);
  background: var(--cobalt);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-danger {
  border-color: #9a2830;
  background: transparent;
  color: #9a2830;
}

.admin-items {
  display: grid;
  gap: 0.8rem;
}

.admin-item {
  border: 1px solid var(--line);
  background: var(--paper);
}

.admin-item summary {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
  cursor: pointer;
  list-style: none;
}

.admin-item summary::-webkit-details-marker {
  display: none;
}

.admin-item summary span {
  min-width: 92px;
  color: var(--cobalt);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-item summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
}

.admin-item-form {
  padding: 1.2rem;
  border-top: 1px solid var(--line);
}

.admin-inline {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-inline label {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.admin-inline input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
}

.admin-upload {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px dashed var(--line);
  background: var(--milk);
}

.admin-upload img {
  width: min(100%, 280px);
  max-height: 220px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.admin-upload small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-file-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  background: var(--cobalt);
  color: white;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.admin-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.admin-empty {
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
}

.admin-denied {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 2rem;
  text-align: center;
}

.admin-denied h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  font-weight: 400;
}

.admin-denied a {
  color: var(--cobalt);
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    min-height: 64px;
    gap: 1rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
    justify-self: end;
  }

  .mobile-menu summary {
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    list-style: none;
    text-transform: uppercase;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu nav {
    position: absolute;
    top: 2rem;
    right: 0;
    display: grid;
    min-width: 190px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 16px 42px rgb(25 25 25 / 12%);
  }

  .mobile-menu nav a {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.72rem;
    font-weight: 700;
  }

  .mobile-menu nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 1.5rem;
  }

  .hero-kicker span:last-child {
    display: none;
  }

  .hero h1 {
    margin-top: 4rem;
    font-size: clamp(3.5rem, 13.3vw, 6rem);
    line-height: 0.88;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

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

  .direction-card:nth-child(2) {
    border-right: 0;
  }

  .direction-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-intro,
  .services-intro {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .section-intro > p:last-child {
    max-width: 570px;
  }

  .service-list article {
    grid-template-columns: 0.2fr 1.2fr 1fr;
  }

  .service-list a {
    grid-column: 2;
  }

  .case-study,
  .case-reverse {
    grid-template-columns: 1fr;
  }

  .case-reverse .case-visual,
  .case-reverse .case-copy {
    grid-column: 1;
  }

  .case-reverse .case-visual {
    grid-row: 1;
  }

  .case-reverse .case-copy {
    grid-row: 2;
  }

  .selector,
  .about {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

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

  .admin-tabs {
    position: sticky;
    top: 78px;
    z-index: 8;
    height: auto;
    flex-direction: row;
    gap: 0.25rem;
    padding: 0.6rem;
    overflow-x: auto;
    border-right: 0;
  }

  .admin-tabs a {
    flex: 0 0 auto;
    border: 1px solid #41413f;
  }

  .admin-status {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .manifesto,
  .section-shell {
    padding-right: 1.15rem;
    padding-left: 1.15rem;
  }

  .site-header {
    gap: 0.8rem;
  }

  .header-telegram {
    display: none;
  }

  .hero h1 {
    margin-bottom: 2.8rem;
    font-size: clamp(3.15rem, 15.5vw, 5rem);
    overflow-wrap: anywhere;
  }

  .hero-bottom > p {
    font-size: 1rem;
  }

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

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

  .direction-card {
    min-height: 245px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .direction-card h2 {
    margin-top: 4rem;
  }

  .manifesto-copy {
    font-size: 2.25rem;
  }

  .section-intro h2 {
    font-size: 3.25rem;
  }

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

  .category-filter button {
    min-width: 0;
    padding-right: 0.55rem;
    padding-left: 0.55rem;
  }

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

  .product-cover {
    min-height: 300px;
  }

  .product-content {
    padding: 1.5rem;
  }

  .product-content h3 {
    font-size: 2.7rem;
  }

  .product-details {
    grid-template-columns: 1fr;
  }

  .product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .product-actions button,
  .product-actions a {
    min-width: 0;
  }

  .service-list article {
    grid-template-columns: 0.18fr 1fr;
    gap: 1rem;
  }

  .service-steps {
    grid-column: 2;
  }

  .service-list a {
    grid-column: 2;
    justify-self: start;
  }

  .case-visual {
    min-height: 440px;
  }

  .case-copy h3 {
    margin-bottom: 2rem;
  }

  .selector {
    padding: 0;
  }

  .selector-question,
  .recommendation {
    padding: 4rem 1.15rem;
  }

  .selector-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .about-monogram {
    max-height: 560px;
  }

  .about-copy h2 {
    font-size: 3.25rem;
  }

  .contact h2 {
    font-size: 3.4rem;
  }

  .floating-contacts {
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .floating-contacts a,
  .floating-contacts a:last-child {
    width: 48px;
    height: 48px;
    font-size: 0.63rem;
  }

  .admin-header {
    padding: 0 1rem;
  }

  .admin-header p,
  .admin-header nav a:first-child {
    display: none;
  }

  .admin-workspace {
    padding: 1.2rem;
  }

  .admin-title {
    display: grid;
  }

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

  .article-footer {
    display: grid;
    gap: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.blog-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 44px; }
.blog-card { max-width: 760px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.24); }
.blog-card span { display: block; margin-bottom: 18px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .64; }
.blog-card h3 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 40px); font-weight: 500; }
.blog-card p { margin: 0; max-width: 620px; opacity: .75; }
 (max-width: 760px) { .blog-grid { margin-top: 28px; } .blog-card { padding: 22px 0; } }

.blog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.blog-card {
  max-width: 760px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.24);
}

.blog-card span {
  display: block;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .64;
}

.blog-card h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 500;
}

.blog-card p {
  margin: 0;
  max-width: 620px;
  opacity: .75;
}

@media (max-width: 760px) {
  .blog-grid { margin-top: 28px; }
  .blog-card { padding: 22px 0; }
}
