/* Рукописный шрифт Gogol лежит в папке fonts */
@font-face {
  font-family: 'Gogol';
  src: url('fonts/gogol.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --desk: #000;
  --paper: #F4F5F3;
  --paper-back: #DCE0DE;
  --ink: #151515;
  --muted: #5F6366;
  --line: #C9CECC;
  --blue: #A9D2F0;
  --blue-soft: #D6EAF8;
  --blue-ink: #2C6A99;
  --serif: 'Cormorant', 'Times New Roman', Georgia, serif;
  --sans: 'Onest', 'Helvetica Neue', Arial, sans-serif;
  --hand: 'Gogol', 'Segoe Print', cursive;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #E9EBE9;
    --paper-back: #BFC4C2;
  }
}

:root[data-theme="dark"] {
  --paper: #E9EBE9;
  --paper-back: #BFC4C2;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.desk {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: #fff;
  padding: 0 6px 26px;
}

.topline .sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
}

.topline .year {
  font-size: 14px;
  color: #9A9EA1;
}

/* ===== ВКЛАДКИ + ЛИСТ ===== */
.tabs {
  display: flex;
  gap: 6px;
  padding: 0 14px 0 28px;
  max-width: 100%;
}

.tab {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 26px 10px;
  border-radius: 12px 12px 0 0;
  background: var(--paper-back);
  color: #3E4244;
  position: relative;
  top: 2px;
  transition: background .2s, color .2s;
}

.tab:hover {
  background: var(--blue-soft);
}

.tab[aria-current="page"] {
  background: var(--paper);
  color: var(--ink);
  top: 0;
  padding-bottom: 12px;
  z-index: 2;
}

.sheet {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-radius: 4px 14px 14px 14px;
  padding: clamp(28px, 5vw, 64px);
  min-height: 70vh;
  box-shadow: 0 30px 60px -30px rgba(255, 255, 255, .08);
}

.sheet::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 10px;
  right: -8px;
  top: 14px;
  bottom: -10px;
  background: var(--paper-back);
  border-radius: 4px 14px 14px 14px;
  transform: rotate(.4deg);
}

.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  background: var(--paper);
}

.page {
  position: relative;
  z-index: 1;
}

.page[hidden] {
  display: none;
}

.page.enter {
  animation: enter .45s cubic-bezier(.2, .7, .2, 1);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

  .tab {
    transition: none;
  }
}

/* лист, который перелистывается при переходе между страницами */
.leaf {
  position: fixed;
  z-index: 50;
  overflow: hidden;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  box-shadow: 0 0 40px rgba(0, 0, 0, .35);
}

.leaf > .leaf-in {
  position: absolute;
  left: 0;
  margin: 0;
}

.leaf-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.under-shade {
  position: fixed;
  z-index: 49;
  pointer-events: none;
  background: #000;
}

/* ===== ОБЩИЕ ЭЛЕМЕНТЫ ===== */
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1;
  margin: 0;
  letter-spacing: -.01em;
}

.h-page {
  font-size: clamp(48px, 7vw, 96px);
  font-style: italic;
  font-weight: 500;
  line-height: .98;
}

/* короткая подпись над крупным заголовком, входит в h1 */
.kicker {
  display: block;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--muted);
}

.lead {
  font-size: clamp(18px, 1.6vw, 20px);
  max-width: 36em;
  margin: 22px 0 0;
}

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

.hand {
  font-family: var(--hand);
  color: var(--blue-ink);
  font-size: 24px;
  line-height: 1.1;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 500 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #fff;
  transition: background .2s, color .2s, border-color .2s;
}

.btn:hover {
  background: var(--blue);
  color: var(--ink);
  border-color: var(--blue);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.btn[disabled] {
  opacity: .6;
  cursor: wait;
}

.link {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1.5px solid var(--blue);
  padding-bottom: 1px;
}

.link:hover {
  background: var(--blue-soft);
}

/* хлебные крошки */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "›";
  margin-right: 8px;
}

.crumbs a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.crumbs a:hover {
  border-bottom-color: var(--blue-ink);
}

.crumbs [aria-current="page"] {
  color: var(--ink);
}

.clip {
  position: absolute;
  width: 28px;
  height: 70px;
  z-index: 3;
}

.tape {
  position: absolute;
  width: 110px;
  height: 30px;
  background: rgba(169, 210, 240, .7);
  z-index: 3;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}

.polaroid {
  position: relative;
  background: #fff;
  padding: 14px 14px 56px;
  width: 100%;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
}

.polaroid .photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  background: #E3E6E5;
}

.polaroid .cap {
  position: absolute;
  left: 18px;
  bottom: 12px;
  white-space: nowrap;
  font-family: var(--hand);
  font-size: 26px;
  color: var(--ink);
}

/* текстовые разделы */
.txt {
  margin-top: 88px;
  border-top: 1.5px solid var(--ink);
}

.txt-sec {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 24px 56px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.txt-sec h2 {
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.08;
}

.txt-sec p {
  margin: 0 0 14px;
  max-width: 40em;
}

.txt-sec p:last-child {
  margin-bottom: 0;
}

/* ===== ОБЛОЖКА ===== */
.cover {
  padding: 0 44px 56px 0;
}

.cover[hidden] {
  display: none;
}

.planner {
  position: relative;
  border-radius: 26px;
  padding: clamp(14px, 2.4vw, 30px);
  background: #E6E8E7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 40px 80px -40px rgba(255, 255, 255, .12);
}

.planner::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px dashed rgba(0, 0, 0, .16);
  border-radius: 19px;
  pointer-events: none;
}

.spread {
  display: grid;
  grid-template-columns: 1fr clamp(34px, 4vw, 52px) 1fr;
  position: relative;
}

.pg {
  position: relative;
  aspect-ratio: 1 / 1.08;
  container-type: inline-size;
  overflow: visible;
}

.pg-l {
  background: #171717;
  border-radius: 10px 0 0 10px;
  color: #fff;
  background-image: radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .07), transparent 60%);
}

.pg-r {
  background: #D7DBDA;
  border-radius: 0 10px 10px 0;
  background-image: radial-gradient(120% 90% at 70% 30%, rgba(255, 255, 255, .55), transparent 60%);
}

.pg-l::after,
.pg-r::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.rings {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16% 0;
  background: linear-gradient(90deg, #0d0d0d 0 50%, #bfc3c2 50%);
}

.rings::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 9%;
  bottom: 9%;
  width: 9px;
  margin-left: -4.5px;
  border-radius: 5px;
  background: linear-gradient(90deg, #8d9192, #f4f5f5 45%, #a7abac);
}

.grp {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.6vw, 30px);
}

.grp i {
  display: block;
  height: 13px;
  margin: 0 -26%;
  border-radius: 8px;
  position: relative;
  background: linear-gradient(180deg, #fdfdfd 0%, #cfd2d3 40%, #868a8c 70%, #eceeee 100%);
  box-shadow: 0 3px 4px rgba(0, 0, 0, .45);
}

.word {
  position: absolute;
  top: 48%;
  margin: 0;
  font-family: var(--hand);
  white-space: nowrap;
}

.word-l {
  left: 8%;
  font-size: 20cqi;
  font-weight: 500;
  color: #F4F5F3;
}

.word-r {
  left: 5%;
  font-size: 20cqi;
  font-style: italic;
  font-weight: 500;
  color: #111;
  z-index: 2;
}

.tag {
  position: absolute;
  left: 8%;
  top: calc(50% - 8.5cqi);
  display: inline-flex;
  align-items: center;
  gap: 2cqi;
  font: 600 clamp(12px, 3.6cqi, 20px)/1 var(--sans);
  background: var(--blue);
  color: #111;
  padding: 1.6cqi 2.6cqi;
  transform: rotate(-2deg);
}

.oval {
  font-family: var(--hand);
  font-weight: 500;
  font-size: 1.15em;
  background: #fff;
  border: 1.5px solid #111;
  border-radius: 50%;
  padding: .05em .7em;
  margin-left: -5cqi;
  transform: rotate(-6deg);
}

.strip {
  position: absolute;
  right: 7%;
  top: calc(50% + 21cqi);
  background: #111;
  color: #fff;
  font: 600 clamp(12px, 3.8cqi, 22px)/1 var(--sans);
  padding: 1.8cqi 3cqi;
  transform: rotate(1deg);
}

.pol {
  position: absolute;
  width: 31%;
}

.pol .clip {
  width: 18%;
  height: auto;
  aspect-ratio: 28 / 70;
  top: -13%;
  left: 16%;
}

.pol .polaroid {
  width: 100%;
  padding: 5% 5% 22%;
}

.pol .polaroid .cap {
  font-size: clamp(14px, 4.6cqi, 26px);
  left: 7%;
  bottom: -1%;
}

.pol-l {
  left: 9%;
  top: 7%;
  width: 27%;
  transform: rotate(-4deg);
}

.pol-r {
  right: 9%;
  top: 6%;
  width: 30%;
  transform: rotate(3deg);
}

.scrap {
  position: absolute;
  right: 5%;
  bottom: 8%;
  width: 64%;
  transform: rotate(-2deg);
  color: #222;
  background: #FAFAF8 repeating-linear-gradient(transparent 0 calc(5.4cqi - 1px), #D6DCE0 calc(5.4cqi - 1px) 5.4cqi);
  padding: 3cqi 4cqi;
  font-size: clamp(11px, 3.3cqi, 16px);
  line-height: 5.4cqi;
  clip-path: polygon(0 3%, 8% 0, 20% 2%, 35% 0, 52% 3%, 68% 0, 85% 2%, 100% 0, 100% 97%, 88% 100%, 72% 97%, 55% 100%, 38% 98%, 20% 100%, 0 98%);
}

.scrap a {
  text-decoration: none;
  white-space: nowrap;
}

.scrap a:hover {
  background: var(--blue-soft);
}

.note-r {
  position: absolute;
  right: 9%;
  bottom: 8%;
  text-align: right;
  font-size: clamp(16px, 5cqi, 30px);
  transform: rotate(-5deg);
  margin: 0;
}

.side-tabs {
  position: absolute;
  right: -40px;
  top: 16%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-tabs a {
  writing-mode: vertical-rl;
  text-decoration: none;
  background: #171717;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 20px 11px;
  border-radius: 0 10px 10px 0;
  transition: background .2s, color .2s;
}

.side-tabs a:hover {
  background: var(--blue);
  color: #111;
}

/* ===== ГЛАВНАЯ ===== */
.home-h1 {
  font-family: var(--serif);
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.04;
  max-width: 16em;
}

.intro-sub {
  margin: 24px 0 0;
  max-width: 38em;
  font-size: clamp(17px, 1.5vw, 19px);
}

.does {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 80px;
  border-top: 1.5px solid var(--ink);
}

.does > div {
  padding: 24px 28px 8px 0;
}

.does > div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.does h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.does p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sect-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 96px 0 32px;
}

.sect-head h2 {
  font-size: clamp(40px, 5vw, 60px);
  font-style: italic;
  font-weight: 500;
}

.slips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.slip {
  position: relative;
  background: #fff;
  padding: 12px 12px 20px;
  text-decoration: none;
  display: block;
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .5);
  transition: transform .25s;
}

.slip:nth-child(1) {
  transform: rotate(-1.2deg);
}

.slip:nth-child(2) {
  transform: rotate(.8deg);
  margin-top: 22px;
}

.slip:nth-child(3) {
  transform: rotate(-.5deg);
}

.slip:hover {
  transform: rotate(0) translateY(-4px);
}

.slip .tape {
  top: -12px;
  left: 50%;
  margin-left: -55px;
  transform: rotate(-3deg);
}

.slip h3 {
  font-size: 30px;
  margin: 16px 4px 4px;
}

.slip p {
  margin: 0 4px;
  font-size: 15px;
  color: var(--muted);
}

.cta {
  margin-top: 96px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  border-top: 1.5px solid var(--ink);
}

.cta p {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.05;
  margin: 0;
  max-width: 16em;
}

.thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* кадрирование превью и фото */
.pos-evolut {
  object-position: 50% 30%;
}

.pos-lume {
  object-position: 50% 35%;
}

.pos-flower {
  object-position: 40% 50%;
}

.pos-face-high {
  object-position: 50% 18%;
}

.pos-face {
  object-position: 50% 25%;
}

.pos-face-low {
  object-position: 50% 40%;
}

/* ===== ПРОЕКТЫ ===== */
.proj-list {
  margin-top: 56px;
}

.proj {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

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

.proj .frame {
  background: #fff;
  padding: 12px;
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, .5);
  position: relative;
}

.proj .frame .tape {
  top: -13px;
  left: 24px;
  transform: rotate(-4deg);
}

.kind {
  font-size: 15px;
  color: var(--muted);
}

.proj h2 {
  font-size: clamp(44px, 5vw, 64px);
  margin: 6px 0 14px;
}

.proj p {
  margin: 0;
  max-width: 30em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 26px;
  padding: 0;
  list-style: none;
}

.chips li {
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
}

.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.steps > li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.steps > li > h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
}

.steps ul {
  margin: 0;
  padding-left: 18px;
}

.steps p {
  margin: 0;
}

.steps p + p {
  margin-top: 12px;
}

/* слайдер со скриншотами на странице кейса */
.slider {
  position: relative;
  background: #fff;
  padding: 10px;
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, .5);
}

.slider .tape {
  top: -14px;
  left: 30px;
  transform: rotate(-3deg);
}

.track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.track::-webkit-scrollbar {
  display: none;
}

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

.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: #E8EBEA;
  margin: 0;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slide.tall {
  overflow-y: auto;
  scrollbar-width: thin;
}

.slide.tall img {
  height: auto;
}

.slide .scroll-hint {
  position: sticky;
  bottom: 12px;
  left: 0;
  display: table;
  margin: -46px auto 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}

.s-nav {
  position: absolute;
  top: calc(50% - 16px);
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  transition: background .2s, opacity .2s;
}

.s-nav:hover {
  background: var(--blue);
}

.s-nav[disabled] {
  opacity: 0;
  pointer-events: none;
}

.s-prev {
  left: 20px;
}

.s-next {
  right: 20px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 2px;
}

.dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  cursor: pointer;
}

.dots button[aria-current="true"] {
  background: var(--ink);
}

/* ===== СТРАНИЦА КЕЙСА ===== */
.page-case .kind {
  display: block;
  margin-bottom: 12px;
}

.page-case .chips {
  margin-bottom: 0;
}

.page-case .slider {
  margin-top: 48px;
}

.page-case .steps {
  margin-top: 48px;
}

.related {
  margin-top: 88px;
}

.related h2 {
  margin-bottom: 32px;
  font-size: clamp(40px, 5vw, 60px);
  font-style: italic;
  font-weight: 500;
}

.slips-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
}

.slider-evolut .slide {
  background: #EDEDEA;
}

.slider-lume .slide {
  background: #ECEAE5;
}

.slider-flower .slide {
  background: #0E0B0D;
}

/* ===== ОБО МНЕ ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
  margin-top: 40px;
}

.about .text p {
  margin: 0 0 16px;
  max-width: 36em;
  font-size: 18px;
}

.about .side {
  position: relative;
  width: 100%;
  transform: rotate(-2.5deg);
}

.about .side .clip {
  top: -34px;
  right: 50px;
}

.process {
  margin-top: 88px;
  scroll-margin-top: 20px;
}

.process h2 {
  font-size: clamp(40px, 5vw, 60px);
  font-style: italic;
  font-weight: 500;
}

.process > p {
  margin: 16px 0 0;
  max-width: 38em;
  color: var(--muted);
}

.flow {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}

.flow::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 38px;
  border-top: 1.5px dashed #9AA0A3;
}

.flow li {
  display: flex;
  flex-direction: column;
  position: relative;
  background: #fff;
  padding: 22px 18px 20px;
  box-shadow: 0 14px 28px -22px rgba(0, 0, 0, .55);
}

.flow .n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  margin-bottom: 16px;
}

.flow h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.flow p {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--muted);
}

.flow .out {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
}

.file {
  margin-top: 72px;
  border-top: 1.5px solid var(--ink);
}

.row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.row > h3 {
  font-size: 30px;
  font-weight: 600;
}

.row dl {
  margin: 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 20px;
}

.row dt {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.row dd {
  margin: 0;
}

.row .chips {
  margin: 4px 0 0;
}

/* ===== КНОПКИ «ПОДЕЛИТЬСЯ» ===== */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 64px;
  font-size: 15px;
  color: var(--muted);
}

/* ===== КОНТАКТЫ ===== */
.tg-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}

.tg-cta .hand {
  margin: 0;
}

.contact {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  margin-top: 56px;
  align-items: start;
}

.form-title {
  font-size: clamp(28px, 2.8vw, 36px);
  margin-bottom: 8px;
}

.form-note {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}

.form {
  display: grid;
  gap: 24px;
}

.field label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.field .hint {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  padding: 10px 0;
  border-radius: 0;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 32px;
  padding-top: 2px;
  background: repeating-linear-gradient(transparent 0 31px, var(--line) 31px 32px);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--blue-ink);
  box-shadow: 0 2px 0 var(--blue);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.err {
  color: #A1262B;
  font-size: 14px;
  margin-top: 6px;
}

.send-err {
  color: #A1262B;
  font-size: 15px;
  margin: 0;
}

.done {
  display: none;
  background: #fff;
  padding: 28px;
  position: relative;
}

.done .tape {
  top: -12px;
  left: 30px;
  transform: rotate(-3deg);
}

.done p {
  font-family: var(--serif);
  font-size: 34px;
  margin: 0;
  line-height: 1.1;
}

.card {
  background: #fff;
  padding: 30px 30px 34px;
  position: relative;
  transform: rotate(1.5deg);
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .5);
}

.card .clip {
  top: -34px;
  left: 40px;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 4px 16px;
  flex-wrap: wrap;
}

.card li:last-child {
  border-bottom: none;
}

.card li span {
  color: var(--muted);
}

.card .city {
  color: var(--ink);
  font-weight: 500;
}

.card a {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1.5px solid var(--blue);
}

.foot {
  color: #9A9EA1;
  font-size: 14px;
  padding: 44px 6px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.foot a {
  color: #fff;
  text-decoration: none;
  transition: color .2s;
}

.foot a:hover {
  color: var(--blue);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 15px;
}

.foot-copy {
  margin-left: auto;
}

.to-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  flex: 0 0 auto;
  transition: background .2s, color .2s, border-color .2s;
}

.to-top svg {
  width: 20px;
  height: 20px;
}

.foot .to-top:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #111;
}

@media (max-width: 560px) {
  .foot {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px 16px;
    padding-top: 36px;
  }

  .foot-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }

  .foot-copy {
    margin-left: 0;
  }
}

/* ===== СТРАНИЦА 404 ===== */
.notfound .code {
  display: inline-block;
  font-family: var(--hand);
  font-size: clamp(96px, 16vw, 180px);
  line-height: 1;
  color: var(--blue-ink);
  transform: rotate(-4deg);
}

.notfound-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1100px) {
  .flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flow::before {
    left: 38px;
    right: auto;
    top: 30px;
    bottom: 30px;
    border-top: none;
    border-left: 1.5px dashed #9AA0A3;
  }

  .flow li {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 20px;
    padding: 20px;
  }

  .flow .n {
    grid-row: span 3;
    margin: 0;
  }

  .flow h3,
  .flow p {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .about,
  .contact,
  .proj,
  .txt-sec {
    grid-template-columns: 1fr;
  }

  .slips,
  .slips-2,
  .does {
    grid-template-columns: 1fr;
  }

  .does > div + div {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .slip:nth-child(2) {
    margin-top: 0;
  }

  .about .side {
    max-width: 280px;
    margin-left: 20px;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .txt-sec {
    gap: 14px;
  }
}

@media (max-width: 760px) {
  .cover {
    padding: 0 0 40px;
  }

  .spread {
    grid-template-columns: 1fr;
    grid-template-rows: auto 34px auto;
  }

  .pg {
    aspect-ratio: 1 / 1.2;
  }

  .word {
    top: 46%;
  }

  .tag {
    top: calc(46% - 9cqi);
  }

  .strip {
    top: calc(46% + 21cqi);
  }

  .scrap {
    width: 70%;
    bottom: 6%;
  }

  .pol-l {
    width: 32%;
  }

  .pol-r {
    width: 36%;
    top: 10%;
  }

  .pg-l {
    border-radius: 10px 10px 0 0;
  }

  .pg-r {
    border-radius: 0 0 10px 10px;
  }

  .rings {
    flex-direction: row;
    padding: 0 14%;
    background: linear-gradient(180deg, #0d0d0d 0 50%, #bfc3c2 50%);
  }

  .rings::before {
    left: 9%;
    right: 9%;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 9px;
    margin: -4.5px 0 0;
    background: linear-gradient(180deg, #8d9192, #f4f5f5 45%, #a7abac);
  }

  .grp {
    flex-direction: row;
  }

  .grp i {
    width: 13px;
    height: auto;
    margin: -24px 0;
    background: linear-gradient(90deg, #fdfdfd 0%, #cfd2d3 40%, #868a8c 70%, #eceeee 100%);
  }

  .word-l {
    font-size: 21cqi;
  }

  .word-r {
    left: 7%;
  }

  .side-tabs {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-top: -6px;
    gap: 6px;
  }

  .side-tabs a {
    writing-mode: horizontal-tb;
    border-radius: 0 0 10px 10px;
    padding: 12px 16px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .desk {
    padding: 18px 10px 32px;
  }

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

  .tab {
    padding: 11px 2px 9px;
    font-size: 13px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    white-space: nowrap;
  }

  .tab[aria-current="page"] {
    padding-bottom: 11px;
  }

  .row dl {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .row dd {
    margin-bottom: 12px;
  }

  .steps > li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .s-nav {
    width: 38px;
    height: 38px;
    margin-top: -19px;
    font-size: 20px;
  }

  .s-prev {
    left: 14px;
  }

  .s-next {
    right: 14px;
  }

  .side-tabs a {
    padding: 11px 12px;
    font-size: 13px;
  }
}

