/* fantasy* — звёздочка как сноска.
   Три цвета, один знак, мелкий честный шрифт под каждой работой. */

@font-face {
  font-family: Golos;
  src: url("assets/fonts/golos-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Golos;
  src: url("assets/fonts/golos-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Golos;
  src: url("assets/fonts/golos-800.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "Fantasy Serif";
  src: url("assets/fonts/playfair-italic-500.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Fantasy Mono";
  src: url("assets/fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #ebede6;
  --ink: #222420;
  --lime: #d5ff45;
  --gutter: clamp(18px, 3.6vw, 64px);
  --hh: 68px;
  --F: min(15.2vw, 22.6svh);
  --sans: Golos, "Helvetica Neue", Arial, sans-serif;
  --serif: "Fantasy Serif", Georgia, serif;
  --mono: "Fantasy Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Темы секций: цвет задаёт только data-theme */
[data-theme="paper"] {
  --bg: var(--paper);
  --fg: var(--ink);
  --mut: #5a6150;
  --ln: rgb(34 36 32 / 0.22);
  --fc: var(--ink);
}
[data-theme="ink"] {
  --bg: var(--ink);
  --fg: var(--paper);
  --mut: #a5ac9a;
  --ln: rgb(235 237 230 / 0.24);
  --fc: var(--lime);
}
[data-theme="lime"] {
  --bg: var(--lime);
  --fg: var(--ink);
  --mut: #394710;
  --ln: rgb(34 36 32 / 0.3);
  --fc: var(--ink);
}

* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: var(--hh);
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main {
  position: relative;
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
:focus-visible {
  outline: 3px solid var(--fc, var(--ink));
  outline-offset: 4px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
p,
figure,
ul,
dl {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.058em;
  line-height: 0.9;
  text-wrap: balance;
}
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.mono {
  font: 500 12.5px/1.45 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Знак */
.ast {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  fill: currentColor;
  flex: none;
}
.ico {
  width: 1em;
  height: 1em;
  flex: none;
  transition: transform 0.4s var(--ease);
}
.ico-ur {
  transform: rotate(-45deg);
}
.ico-down {
  transform: rotate(90deg);
}
.ico-up {
  transform: rotate(-90deg);
}

/* Сноска */
.fn {
  display: flex;
  gap: 0.6em;
  align-items: baseline;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.45;
  color: var(--mut);
}
.fn .ast {
  color: var(--fg);
  width: 0.8em;
  height: 0.8em;
  translate: 0 0.08em;
}

/* Шапка */
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 80;
  background: var(--lime);
  color: var(--ink);
  padding: 15px;
}
.skip:focus {
  top: 10px;
}
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--hh);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg);
  color: var(--fg);
}
.js .site-header {
  position: fixed;
  transition:
    background-color 0.35s,
    color 0.35s,
    box-shadow 0.35s;
}
.site-header.scrolled {
  box-shadow: 0 1px 0 var(--ln);
}
.wordmark {
  display: inline-flex;
  align-items: flex-start;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
  white-space: nowrap;
  padding-block: 10px;
  margin-block: -10px;
}
.wordmark .ast {
  width: 0.5em;
  height: 0.5em;
  margin: 0.02em 0 0 0.06em;
  transition: rotate 0.7s var(--ease);
}
.wordmark:hover .ast {
  rotate: 120deg;
}
.site-header nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 40px);
  align-items: center;
  font-size: 16px;
}
.site-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  white-space: nowrap;
}
.site-header nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.site-header nav a:not(.nav-contact):hover::after {
  transform: scaleX(1);
}
.nav-contact {
  padding: 0 6px 0 18px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  transition:
    background-color 0.3s,
    color 0.3s;
}
.nav-contact .ico {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
}
.nav-contact:hover {
  background: var(--fg);
  color: var(--bg);
}
.nav-contact:hover .ico {
  background: var(--lime);
  color: var(--ink);
  transform: rotate(0deg);
}

/* Кнопки и ссылки */
.btn,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 60px;
  padding: 8px 8px 8px 28px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  transition:
    background-color 0.3s,
    color 0.3s,
    translate 0.5s var(--ease);
}
.btn > span:last-child:not(.btn-dot),
.pill > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}
.btn-dark,
.pill.dark {
  background: var(--ink);
  color: var(--paper);
}
[data-theme="lime"] .btn-dark {
  color: var(--lime);
}
.btn-dark:hover,
.pill.dark:hover {
  background: #343730;
}
.btn-lime {
  background: var(--lime);
  color: var(--ink);
}
.btn-lime .btn-dot {
  background: var(--ink);
  color: var(--lime);
}
.btn-lime:hover {
  background: #e4ff86;
}
.btn-ghost {
  border: 1.5px solid currentColor;
  padding-block: 6.5px;
}
.btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}
.btn-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 20px;
  transition: transform 0.5s var(--ease);
}
.btn:hover .btn-dot {
  transform: scale(1.14);
}
.btn:hover .ico-ur {
  transform: rotate(-45deg) translateX(2px);
}
.btn:hover .ico-down {
  transform: rotate(90deg) translateX(2px);
}
.link-ul,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0;
  background: none;
  border-bottom: 2px solid currentColor;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  transition: gap 0.4s var(--ease);
}
.link-ul:hover,
.text-link:hover {
  gap: 16px;
}
.text-link {
  color: var(--ink);
  font-size: 17px;
}

/* Первый экран */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding: calc(var(--hh) + clamp(10px, 2.2svh, 24px)) var(--gutter) clamp(18px, 3svh, 34px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  color: var(--fg);
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ln);
}
.hero-stage {
  position: relative;
  align-self: center;
  padding-block: clamp(8px, 3svh, 36px);
}
.hero h1 {
  position: relative;
  z-index: 1;
  font-size: var(--F);
  line-height: 0.86;
  letter-spacing: -0.052em;
  text-wrap: nowrap;
}
.ln {
  display: block;
  overflow: hidden;
  padding: 0.04em 0.14em 0.22em 0;
  margin-bottom: -0.2em;
}
.ln-in {
  display: inline-block;
  white-space: nowrap;
}
.ln-2 {
  text-align: right;
}
.hero h1 em {
  font-weight: 500;
  letter-spacing: -0.05em;
  padding-right: 0.04em;
}
.outlined {
  color: transparent;
  -webkit-text-stroke: clamp(1.5px, 0.012em, 3px) var(--ink);
  paint-order: stroke fill;
}
.hero-star {
  position: absolute;
  z-index: 0;
  width: calc(var(--F) * 3);
  height: calc(var(--F) * 3);
  right: calc(var(--F) * -0.85);
  bottom: calc(var(--F) * -1.35);
  fill: var(--lime);
  rotate: var(--rot, 0deg);
  translate: var(--tx, 0px) var(--ty, 0px);
  scale: var(--sc, 1);
  will-change: rotate, translate;
}
.hero-foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: end;
  gap: 22px clamp(36px, 6vw, 110px);
}
.hero-note {
  position: absolute;
  z-index: 1;
  left: 0;
  top: calc(clamp(8px, 3svh, 36px) + var(--F) * 1.74);
  translate: 0 -100%;
  display: grid;
  gap: 5px;
}
.hero-note li::before {
  content: "+ ";
}
.lede {
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.3;
  grid-column: 1;
  white-space: nowrap;
}
.hero-actions {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}
.hero-fn {
  grid-column: 1 / -1;
  padding-top: 14px;
  position: relative;
}
.hero-fn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 1.5px;
  background: var(--fg);
}
.hero-fn .fn-text {
  background: linear-gradient(var(--lime), var(--lime)) 0 92% / 0% 0.7em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition:
    background-size 0.8s var(--ease),
    color 0.4s;
}
.hero:has(h1 em:hover) .fn-text,
.hero:has(.hero-star:hover) .fn-text {
  background-size: 100% 0.7em;
  color: var(--ink);
}

/* Работы */
.work {
  position: relative;
  z-index: 1;
  background: var(--bg);
  color: var(--fg);
  padding: calc(var(--F) * 0.95 + 40px) var(--gutter) clamp(90px, 11vw, 190px);
}
.work-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 330px);
  align-items: end;
  gap: 28px;
}
.work-head h2 {
  font-size: clamp(60px, 12.4vw, 230px);
  line-height: 0.84;
}
.work-head h2 em,
.bento-heading h2 em {
  color: var(--lime);
  font-weight: 500;
}
.work-aside {
  display: grid;
  gap: 14px;
  padding-bottom: 0.6em;
}

/* Разворот проекта */
.project {
  position: relative;
  margin-top: clamp(80px, 11vw, 190px);
}
.p-line {
  display: flex;
  align-items: center;
  gap: 18px;
}
.p-num {
  font: 500 clamp(15px, 1.3vw, 18px) var(--mono);
}
.p-rule {
  flex: 1;
  height: 1px;
  background: var(--ln);
}
.p-kind {
  color: var(--mut);
  white-space: nowrap;
}
.p-title {
  font-size: clamp(46px, 7.4vw, 136px);
  line-height: 0.86;
}
.p-title em {
  color: inherit;
}
.p-desc {
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.25;
  max-width: 24ch;
}
.p-facts {
  display: grid;
  gap: 6px;
  color: var(--mut);
}
.p-facts li::before {
  content: "+ ";
}
.p-open {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  justify-self: start;
  min-height: 56px;
  padding: 5px 5px 5px 22px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  transition:
    background-color 0.3s,
    color 0.3s;
}
.p-open .btn-dot {
  width: 44px;
  height: 44px;
}
/* Одна кнопка кейса накрывает весь разворот: клик по картинке работает, Tab-остановка одна */
.p-open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
}
.project:has(.p-open:hover) .p-open,
.project:has(.p-open:focus-visible) .p-open {
  background: var(--fg);
  color: var(--bg);
}
.project:has(.p-open:hover) .btn-dot,
.project:has(.p-open:focus-visible) .btn-dot {
  transform: scale(1.12);
  background: var(--lime);
  color: var(--ink);
}
.project:has(.p-open:hover) .ico-ur {
  transform: rotate(0deg);
}
.p-open:focus-visible {
  outline: 0;
}
.project:has(.p-open:focus-visible) .p-stage,
.project:has(.p-open:focus-visible) .p-banner {
  outline: 3px solid var(--fc);
  outline-offset: 6px;
}
.shot {
  position: relative;
  overflow: hidden;
  background: #fff;
  --depth: 1;
  transform: translate3d(
    calc(var(--mx, 0) * var(--depth) * -14px),
    calc(var(--my, 0) * var(--depth) * -10px + var(--sy, 0) * var(--depth) * -30px),
    0
  );
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.2s var(--ease);
}
.project:has(.p-open:hover) .shot img {
  scale: 1.03;
}

/* 01 · Crumb */
.p-crumb .p-title {
  font-size: clamp(90px, 25vw, 470px);
  line-height: 0.76;
  letter-spacing: -0.07em;
  margin: clamp(22px, 3vw, 44px) 0 0;
  color: #fffffa;
  mix-blend-mode: difference;
  position: relative;
  z-index: 3;
  pointer-events: none;
}
.p-crumb .p-stage {
  position: relative;
  margin-top: calc(clamp(90px, 25vw, 470px) * -0.24);
  min-height: 1px;
}
.shot-desk {
  width: 76%;
  margin: 0 calc(var(--gutter) * -1 - 40px) 0 auto;
  border-radius: 14px 0 0 14px;
  aspect-ratio: 1600 / 1000;
  --depth: 1;
}
.shot-cat {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: -19%;
  width: 17%;
  aspect-ratio: 3 / 4.2;
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.55);
  --depth: 1.9;
}
.shot-cat img {
  width: 205%;
  max-width: none;
  height: auto;
  margin: -62% 0 0 -22%;
}
.shot-phone {
  position: absolute;
  z-index: 2;
  left: 4%;
  bottom: -14%;
  width: 17.5%;
  aspect-ratio: 800 / 1731;
  max-height: 120%;
  border: clamp(4px, 0.5vw, 8px) solid #0e0f0d;
  border-radius: clamp(20px, 2.6vw, 38px);
  box-shadow: 0 40px 70px -24px rgb(0 0 0 / 0.7);
  --depth: 2.8;
}
.seal {
  position: absolute;
  z-index: 4;
  top: -5%;
  right: 3%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  width: clamp(78px, 9.4vw, 138px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  rotate: -14deg;
  transition: rotate 0.8s var(--ease);
  pointer-events: none;
}
.seal .ast {
  width: 34%;
  height: 34%;
}
.seal b {
  font: 800 clamp(14px, 1.6vw, 22px) var(--sans);
  letter-spacing: -0.04em;
}
.project:has(.p-open:hover) .seal {
  rotate: 16deg;
}
.p-crumb .p-info {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(14px, 2vw, 32px);
  row-gap: 26px;
  align-items: start;
  margin-top: clamp(80px, 13vw, 230px);
}
.p-crumb .p-desc {
  grid-column: 1 / span 4;
}
.p-crumb .p-facts {
  grid-column: 5 / span 4;
  padding-top: 0.5em;
}
.p-crumb .p-open {
  grid-column: 9 / span 4;
}
.p-crumb .fn {
  grid-column: 1 / -1;
}

/* 02 · Ароматная тайна: плоскость лайма */
.p-aroma {
  margin-inline: calc(var(--gutter) * -1);
  padding: clamp(60px, 8vw, 140px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: start;
  background: var(--bg);
  color: var(--fg);
}
.p-aroma .p-info {
  display: grid;
  gap: 26px;
  align-content: start;
  container-type: inline-size;
}
.p-aroma .p-title {
  font-size: clamp(54px, 7.2vw, 130px);
  font-size: min(19cqw, 150px);
  line-height: 0.84;
  margin-top: clamp(6px, 1vw, 18px);
}
.p-aroma .p-title em {
  display: inline-block;
  padding-right: 0.06em;
}
.p-aroma .p-kind {
  white-space: normal;
}
.p-aroma .p-stage {
  position: relative;
  padding-bottom: 30%;
  margin-top: clamp(0px, 4vw, 70px);
}
.shot-store {
  aspect-ratio: 1280 / 610;
  border-radius: 14px;
  box-shadow: 0 30px 60px -28px rgb(34 36 32 / 0.55);
  --depth: 1;
}
.shot-cart {
  position: absolute;
  z-index: 2;
  left: -9%;
  bottom: 6%;
  width: 40%;
  border-radius: 14px;
  box-shadow: 0 30px 55px -22px rgb(34 36 32 / 0.6);
  --depth: 2.1;
}
.shot-admin {
  position: absolute;
  z-index: 2;
  right: 4%;
  bottom: 0;
  width: 29%;
  border-radius: 14px;
  box-shadow: 0 30px 55px -22px rgb(34 36 32 / 0.6);
  --depth: 1.5;
}
.note-tag {
  position: absolute;
  z-index: 3;
  right: 34%;
  bottom: 3%;
  max-width: 220px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--lime);
  border-radius: 4px;
  rotate: -3deg;
  pointer-events: none;
}

/* 03 · Мастерская: полосой во всю ширину */
.p-vk {
  margin-top: clamp(80px, 10vw, 170px);
}
.p-banner {
  margin-inline: calc(var(--gutter) * -1);
  overflow: hidden;
}
.shot-banner {
  aspect-ratio: 1920 / 768;
  max-height: 78svh;
  width: 100%;
  background: #f4dcd2;
  transform: none;
}
.shot-banner img {
  width: 112%;
  max-width: none;
  margin-left: -6%;
  object-position: 50% 50%;
  translate: calc(var(--mx, 0) * -2.6%) 0;
}
.p-vk-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(14px, 2vw, 32px);
  align-items: start;
}
.shot-avatar {
  grid-column: 1 / span 3;
  grid-row: 1;
  margin-top: -9vw;
  aspect-ratio: 1;
  border-radius: 50%;
  border: clamp(6px, 0.8vw, 12px) solid var(--ink);
  z-index: 2;
  --depth: 1.3;
}
.p-vk .p-info {
  grid-column: 5 / -1;
  grid-row: 1;
  display: grid;
  gap: 26px;
  padding-top: clamp(24px, 3.4vw, 56px);
}
.p-vk .p-title em {
  display: block;
  color: var(--lime);
}
.vk-menu {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 24px);
  margin-top: clamp(40px, 6vw, 100px);
}
.vk-menu img {
  width: 100%;
  border-radius: 12px;
  background: #fff;
}
.vk-menu img:nth-child(even) {
  translate: 0 clamp(14px, 2.4vw, 40px);
}

/* Бенто-конфигуратор: плоскость лайма */
.playground {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding: clamp(70px, 9vw, 150px) var(--gutter) clamp(40px, 5vw, 70px);
  overflow: clip;
}
.bento-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
}
.bento-heading h2 {
  font-size: clamp(58px, 11.2vw, 210px);
  line-height: 0.84;
}
.bento-heading h2 em {
  color: var(--ink);
}
.bento-heading > p {
  text-align: right;
  padding-bottom: 0.8em;
}
.bento-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 120px);
  align-items: center;
  margin-top: clamp(30px, 4vw, 70px);
}
.cake-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  max-width: 640px;
  width: 100%;
  margin-inline: auto;
  --turn: 0deg;
}
.stage-star {
  position: absolute;
  left: -9%;
  top: -9%;
  width: 118%;
  height: 118%;
  fill: rgb(34 36 32 / 0.11);
  rotate: var(--turn);
  transition: rotate 1s var(--ease);
}
.cake-disc {
  position: relative;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #fbf3e9;
  box-shadow: 0 0 0 clamp(6px, 0.8vw, 12px) var(--ink);
}
.cake-disc > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.3;
}
#bento-inscription {
  position: absolute;
  top: 49%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-7deg);
  color: #8e2349;
  max-width: 44%;
  font: italic 500 clamp(17px, 2.9vw, 40px) / 1.1 var(--serif);
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
  text-shadow: 0 1px 3px #fff6;
}
#bento-inscription.on-chocolate {
  color: #fff2da;
  text-shadow: 0 1px 3px #49200a;
}
.bento-options {
  min-width: 0;
}
.bento-options fieldset {
  padding: 0;
  margin: 0 0 clamp(18px, 2.2vw, 30px);
  border: 0;
  min-width: 0;
}
.bento-options legend,
.inscription-label > span {
  display: block;
  padding: 0;
  margin-bottom: 12px;
  font: 500 12.5px/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.choice-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.choice-row button {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  min-height: 52px;
  transition:
    background-color 0.25s,
    color 0.25s;
}
.choice-row button:hover {
  background: rgb(34 36 32 / 0.1);
}
.choice-row button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--lime);
}
.inscription-label {
  display: block;
}
.inscription-label input {
  display: block;
  width: 100%;
  padding: 6px 0 10px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: clamp(28px, 3.4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.05em;
}
.inscription-label input::placeholder {
  color: var(--mut);
  font-weight: 400;
}
.inscription-label input:focus-visible {
  outline: 0;
  border-bottom-width: 6px;
}
.bento-checkout {
  display: flex;
  justify-content: space-between;
  gap: 15px 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: clamp(22px, 3vw, 40px);
}
.bento-checkout output {
  font-size: clamp(54px, 6.4vw, 108px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.9;
  white-space: nowrap;
}
.bento-status {
  margin-top: 14px;
  min-height: 26px;
  font-weight: 600;
}
.bento-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border-top: 1.5px solid var(--ink);
  padding-top: 22px;
  margin-top: clamp(30px, 4vw, 60px);
}
.bento-footer p {
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* Услуги */
.approach {
  background: var(--bg);
  color: var(--fg);
  padding: clamp(70px, 9vw, 150px) var(--gutter) clamp(70px, 9vw, 140px);
}
.approach-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(30px, 4vw, 64px);
}
.approach-head h2 {
  font-size: clamp(54px, 8vw, 150px);
}
.approach-head h2 em {
  padding-right: 0.06em;
}
.approach-head .mono {
  color: var(--mut);
  padding-bottom: 1em;
}
.service-links > a {
  border-top: 1.5px solid var(--fg);
  display: grid;
  grid-template-columns: clamp(36px, 5vw, 80px) minmax(0, 7fr) minmax(0, 3fr) 56px;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  margin-inline: calc(var(--gutter) * -1);
  padding: clamp(20px, 2.6vw, 40px) var(--gutter);
  transition:
    background-color 0.35s,
    color 0.35s,
    padding 0.5s var(--ease);
}
.js .service-links > a[data-reveal] {
  transition:
    opacity 0.9s var(--ease),
    transform 1.1s var(--ease),
    background-color 0.35s,
    color 0.35s,
    padding 0.5s var(--ease);
}
.service-links > a:last-child {
  border-bottom: 1.5px solid var(--fg);
}
.s-name {
  font-size: min(8.4vw, 148px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.9;
}
.s-desc {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.3;
  max-width: 30ch;
}
.service-links .ico {
  width: 56px;
  height: 56px;
  padding: 15px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  justify-self: end;
}
.service-links > a:hover,
.service-links > a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  padding-left: calc(var(--gutter) + 18px);
}
.service-links > a:hover .ico {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  transform: rotate(0deg);
}
.service-links > a:hover .ico-down {
  transform: rotate(90deg);
}
.service-links > a:focus-visible {
  outline-offset: -6px;
}

/* Контакт */
.contact {
  position: relative;
  overflow: clip;
  background: var(--bg);
  color: var(--fg);
  padding: clamp(70px, 9vw, 150px) var(--gutter) clamp(50px, 6vw, 90px);
}
.contact-star {
  position: absolute;
  z-index: 0;
  right: calc(var(--gutter) * -0.9);
  top: clamp(24px, 3.4vw, 60px);
  width: clamp(190px, 27vw, 470px);
  height: clamp(190px, 27vw, 470px);
  fill: var(--lime);
  rotate: var(--rot, 0deg);
}
.contact h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(46px, 9.9vw, 190px);
  line-height: 0.88;
  margin-top: clamp(90px, 12vw, 200px);
  text-wrap: nowrap;
}
.contact h2 em {
  color: var(--lime);
  font-weight: 500;
  padding-right: 0.06em;
}
.contact-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-top: clamp(36px, 5vw, 80px);
}
.contact-bottom p {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
}
.contact-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Подвал */
footer {
  background: var(--bg);
  color: var(--fg);
  padding: 0 var(--gutter) 22px;
  overflow: clip;
}
.footer-sign {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: min(24.4vw, 470px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.82;
  border-top: 1px solid var(--ln);
  padding: clamp(16px, 2vw, 30px) 0 0.2em;
  white-space: nowrap;
}
.footer-sign .ast {
  width: 0.4em;
  height: 0.4em;
  margin: 0.1em 0 0 0.04em;
  color: var(--lime);
  rotate: var(--rot, 0deg);
}
.footer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-top: clamp(18px, 2.4vw, 34px);
  padding-top: 16px;
  border-top: 1px solid var(--ln);
  color: var(--mut);
}
.footer-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--fg);
}
.footer-fn .ast {
  color: var(--lime);
}

/* Курсор-подсказка над кейсами */
.cursor-chip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font: 600 14px/1 var(--sans);
  pointer-events: none;
  opacity: 0;
  scale: 0.6;
  transition:
    opacity 0.25s,
    scale 0.4s var(--ease);
  will-change: transform;
}
.cursor-chip.on {
  opacity: 1;
  scale: 1;
}
.cursor-chip .ast {
  width: 0.9em;
  height: 0.9em;
}
@media (hover: none), (pointer: coarse) {
  .cursor-chip {
    display: none;
  }
}

/* Кейс в модальном окне */
dialog {
  border: 0;
  padding: 0;
  width: min(1180px, 96vw);
  max-height: 94dvh;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: rgb(20 22 18 / 0.88);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 24px;
}
.dialog-toolbar .ast {
  color: var(--lime);
}
.dialog-toolbar button {
  min-height: 44px;
  padding: 8px 4px;
  background: transparent;
  color: var(--lime);
  font-size: 17px;
  font-weight: 600;
}
.dialog-toolbar :focus-visible {
  outline-color: var(--lime);
}
#case-body {
  padding: clamp(22px, 3.4vw, 48px);
}
.case-intro h2 {
  font-size: clamp(38px, 6.4vw, 96px);
  line-height: 0.92;
  margin: 12px 0 22px;
  overflow-wrap: anywhere;
}
.eyebrow {
  font: 500 12.5px/1.3 var(--mono);
  letter-spacing: 0.04em;
  color: #5a6150;
}
.case-intro > p {
  font-size: 20px;
  line-height: 1.6;
  max-width: 62ch;
  margin-bottom: 25px;
}
.case-image {
  width: 100%;
  border-radius: 8px;
  margin: 20px 0;
}
.case-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}
.case-gallery figure {
  margin: 0;
}
.case-gallery .case-image {
  margin: 0 auto 12px;
}
.case-gallery figcaption {
  font-size: 16px;
  color: #5a6150;
  margin-bottom: 25px;
}
.mobile-shot {
  max-width: 320px;
}
.aroma-evidence img {
  max-width: 440px;
}
.vk-evidence > figure:first-child img {
  max-width: 320px;
}
.case-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.case-menu .case-image {
  margin: 0;
  background: #fff;
}
.case-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  border-top: 1.5px solid var(--ink);
  padding-top: 25px;
  margin: 30px 0;
}
.case-facts h3 {
  font: 500 12.5px/1.3 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.case-facts h3:not(:first-child) {
  margin-top: 24px;
}
.case-facts p,
.case-facts li {
  line-height: 1.6;
}
.case-facts ul {
  padding-left: 20px;
  margin: 0;
  list-style: disc;
}
.case-note {
  padding: 18px 20px;
  background: var(--lime);
  font-size: 16px;
  line-height: 1.55;
  margin: 20px 0;
  border-radius: 8px;
}

/* Движение: только для тех, кто его не отключил */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition:
      opacity 0.9s var(--ease),
      transform 1.1s var(--ease);
  }
  .js [data-reveal].in {
    opacity: 1;
    transform: none;
  }
  .ln-in {
    animation: line-rise 1.1s var(--ease) backwards;
    animation-delay: calc(var(--i, 0) * 110ms + 120ms);
  }
  .ln-2 .ln-in {
    --i: 1;
  }
  .ln-3 .ln-in {
    --i: 2;
  }
  .hero-star {
    animation: star-in 1.5s var(--ease) 0.5s backwards;
  }
  .hero-meta,
  .hero-foot {
    animation: fade-up 1s var(--ease) 0.95s backwards;
  }
  .cake-stage.changing .cake-disc > img {
    animation: cake-swap 0.45s var(--ease);
  }
  @keyframes line-rise {
    from {
      transform: translateY(108%) rotate(2deg);
    }
  }
  @keyframes star-in {
    from {
      transform: scale(0.15) rotate(-140deg);
      opacity: 0;
    }
  }
  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
  }
  @keyframes cake-swap {
    from {
      opacity: 0.3;
      transform: scale(1.08);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (min-width: 1700px) {
  :root {
    --gutter: max(3.6vw, calc((100vw - 1560px) / 2));
  }
}

@media (max-width: 1000px) {
  .hero-note {
    display: none;
  }
  .hero-foot {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-actions {
    grid-column: 1;
    grid-row: 2;
    flex-wrap: wrap;
  }
  .link-ul {
    white-space: nowrap;
  }
  .p-crumb .p-desc,
  .p-crumb .p-facts,
  .p-crumb .p-open {
    grid-column: 1 / -1;
  }
  .p-crumb .p-facts {
    padding-top: 0;
  }
  .p-aroma {
    grid-template-columns: 1fr;
  }
  .p-aroma .p-stage {
    margin-top: 0;
  }
  .p-vk .p-info {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 22px;
  }
  .shot-avatar {
    grid-column: 1 / span 5;
    margin-top: -14vw;
  }
  .vk-menu {
    grid-row: 3;
  }
  .hero-actions {
    margin-right: 0;
  }
  .service-links > a {
    grid-template-columns: clamp(30px, 6vw, 60px) minmax(0, 1fr) 56px;
  }
  .s-desc {
    grid-column: 2;
    grid-row: 2;
  }
  .service-links .ico {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .bento-builder {
    gap: 24px;
  }
  .shot-cart {
    left: 0;
  }
}

@media (max-width: 700px) {
  :root {
    --hh: 60px;
    --F: min(20.6vw, 11.4svh);
  }
  body {
    font-size: 17px;
  }
  .wordmark {
    font-size: 29px;
  }
  .site-header nav {
    gap: 14px;
    font-size: 15px;
  }
  .nav-services {
    display: none !important;
  }
  .hero {
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-meta span:nth-child(2),
  .hero-note {
    display: none;
  }
  .hero h1 {
    line-height: 0.88;
  }
  .ln-in {
    white-space: normal;
  }
  .ln-2 .ln-in {
    white-space: nowrap;
  }
  .hero-star {
    width: calc(var(--F) * 3.3);
    height: calc(var(--F) * 3.3);
    right: calc(var(--F) * -1.15);
    bottom: calc(var(--F) * -0.9);
  }
  .hero-foot {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-actions {
    grid-column: 1;
    grid-row: 2;
    flex-wrap: wrap;
  }
  .lede {
    max-width: none;
    white-space: normal;
  }
  .btn {
    min-height: 56px;
    font-size: 17px;
  }
  .work-head {
    grid-template-columns: 1fr;
  }
  .work-head h2 {
    font-size: 17.5vw;
  }
  .p-kind {
    white-space: normal;
    text-align: right;
    max-width: 55%;
  }
  .p-crumb .p-title {
    font-size: 30vw;
  }
  .p-crumb .p-stage {
    margin-top: calc(30vw * -0.3);
  }
  .shot-desk {
    width: 100%;
    margin-right: calc(var(--gutter) * -1);
    border-radius: 10px 0 0 10px;
  }
  .shot-cat {
    display: none;
  }
  .shot-phone {
    width: 29%;
    left: 2%;
    bottom: -26%;
  }
  .seal {
    left: auto;
    right: 4%;
    top: -9%;
  }
  .p-crumb .p-info {
    margin-top: 32vw;
  }
  .p-aroma .p-stage {
    padding-bottom: 42%;
  }
  .shot-cart {
    left: -2%;
    width: 52%;
    bottom: 8%;
  }
  .shot-admin {
    right: 0;
    width: 38%;
  }
  .note-tag {
    display: none;
  }
  .p-aroma .p-title {
    font-size: 15vw;
  }
  .p-vk .p-title {
    font-size: 13.5vw;
  }
  .shot-avatar {
    grid-column: 1 / span 6;
    margin-top: -16vw;
  }
  .shot-banner img {
    width: 100%;
    margin-left: 0;
    height: 100%;
    translate: none;
  }
  .vk-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .bento-heading > p {
    text-align: left;
    padding: 0;
  }
  .bento-builder {
    grid-template-columns: 1fr;
  }
  .cake-stage {
    max-width: 440px;
  }
  .bento-checkout {
    flex-wrap: wrap;
  }
  .bento-checkout .btn {
    width: 100%;
    font-size: 17px;
    min-height: 56px;
  }
  .bento-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .approach-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .approach-head .mono {
    padding: 0;
  }
  .service-links .ico {
    width: 44px;
    height: 44px;
    padding: 12px;
  }
  .contact h2 {
    font-size: 11.8vw;
    margin-top: 60vw;
  }
  .contact-star {
    width: 56vw;
    height: 56vw;
    top: 24px;
  }
  .contact-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-links {
    flex-direction: column;
  }
  .contact-links .btn {
    width: 100%;
  }
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .case-gallery,
  .case-facts {
    grid-template-columns: 1fr;
  }
  .dialog-toolbar {
    padding: 4px 14px;
  }
}
@media (max-width: 360px) {
  .site-header nav a:first-child {
    display: none;
  }
}
@media (max-width: 400px) {
  .wordmark {
    font-size: 26px;
  }
  .site-header nav {
    gap: 10px;
    font-size: 14px;
  }
  .nav-contact {
    padding-left: 12px;
  }
}
@media print {
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
