/* Konakh — единая дизайн-система */
:root {
  --color-bg: #0d0d0d;
  --color-surface: #151714;
  --color-green: #263022;
  --color-green-deep: #1b2219;
  --color-accent: #e6ff90;
  --color-pink: #e98da4;
  --color-text: #f2eee5;
  --color-muted: #aaa99f;
  --color-line: rgba(230, 255, 157, .72);
  --font-display: "Neucha", "Segoe Print", cursive;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 540px;
  --page-padding: 22px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --fixed-button-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }

.site-shell,
.design-shell {
  width: min(100%, var(--container));
  margin: 0 auto;
}
.site-shell {
  overflow: hidden;
  padding-bottom: calc(var(--fixed-button-height) + env(safe-area-inset-bottom) + 24px);
}
.section { padding: 46px var(--page-padding); }
.section--compact { padding-top: 18px; padding-bottom: 26px; }

h1, h2, p { margin-top: 0; }
h1, h2 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .035em;
}
h1 { font-size: clamp(42px, 12vw, 62px); line-height: 1.02; }
h2 { color: var(--color-accent); font-size: clamp(31px, 8.7vw, 42px); line-height: 1.06; }
p { margin-bottom: 0; }
.kicker {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.kicker--soft { color: rgba(242, 238, 229, .68); }

/* Header / hero */
.hero {
  position: relative;
  min-height: 720px;
  padding-top: 24px;
  isolation: isolate;
}
.brand {
  position: relative;
  z-index: 5;
  display: inline-block;
  width: 138px;
}
.brand img { width: 100%; height: auto; }
.hero-copy {
  position: relative;
  z-index: 4;
  width: 68%;
  max-width: 350px;
  margin-top: 70px;
}
.hero-copy h1 span { color: var(--color-accent); }
.hero-copy p {
  color: rgba(242, 238, 229, .82);
  font-size: 14px;
  line-height: 1.6;
}
.hero-flamingo {
  position: absolute;
  z-index: 2;
  right: -75px;
  bottom: 190px;
  width: 108%;
  max-width: 350px;
  pointer-events: none;
  filter: drop-shadow(0 24px 42px rgba(0,0,0,.36));
}

.hero-thread {
  position: absolute;
  z-index: 5;
  bottom: 30px;
  width: 100%;
  height: 150px;
  object-fit: fill;
  pointer-events: none;
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 43%) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.portrait-wrap { position: relative; }
.portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px dashed var(--color-line);
  border-radius: 50%;
  box-shadow: 0 18px 34px rgba(0,0,0,.28);
}
.portrait-thread {
  position: absolute;
  z-index: 2;
  top: -18px;
  right: -56px;
  width: 108px;
  height: 54px;
  object-fit: fill;
  transform: rotate(-5deg);
}
.about-copy h2 { margin-bottom: 14px; }
.about-copy > p:last-child {
  color: rgba(242,238,229,.72);
  font-size: 14px;
  line-height: 1.65;
}

/* Textile cards */
.textile-card {
  position: relative;
  overflow: hidden;
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-md);
  background-color: var(--color-green);
  background-image:
    linear-gradient(rgba(27,34,25,.12), rgba(27,34,25,.12)),
    url("../images/section-background.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 48px rgba(0,0,0,.2);
}
.collab-card { padding: 25px 20px 18px; }
.collab-card h2 { margin-bottom: 12px; }
.collab-intro {
  max-width: 390px;
  color: rgba(242,238,229,.88);
  font-size: 14px;
  line-height: 1.58;
}
.animal-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 20px -4px 0;
  padding: 0;
  list-style: none;
}
.animal-list li {
  display: grid;
  min-width: 0;
  grid-template-rows: 66px auto;
  gap: 7px;
  align-items: end;
  justify-items: center;
  text-align: center;
}
.animal-list img {
  width: 100%;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(0,0,0,.3));
}
.animal-list span {
  color: rgba(242,238,229,.92);
  font-size: 10px;
  white-space: nowrap;
}

/* Headings */
.section-heading { margin-bottom: 19px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > img {
  width: 112px;
  height: 32px;
  margin: 2px 0 0 auto;
  object-fit: fill;
}
.section-heading--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.section-heading--row p {
  color: var(--color-muted);
  font-size: 13px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
  background: #d4cec1;
  cursor: zoom-in;
}
.gallery-item--portrait { grid-column: span 2; aspect-ratio: .9; }
.gallery-item--landscape { grid-column: span 3; aspect-ratio: 1.42; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
  background:
    linear-gradient(rgba(216,208,193,.74), rgba(216,208,193,.74)),
    radial-gradient(circle at 30% 20%, #eee8dc, #bbb3a3);
  transition: transform .24s ease;
}
.gallery-item:active img { transform: scale(.975); }

/* Instagram */
.instagram-circle {
  display: grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--color-bg);
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 10px 24px rgba(230,255,157,.14);
}
.instagram-circle svg,
.instagram-fixed svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.instagram-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 34%;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.instagram-strip::-webkit-scrollbar { display: none; }
.instagram-strip a {
  overflow: hidden;
  border-radius: 10px;
  background: #d4cec1;
  scroll-snap-align: start;
}
.instagram-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 6px;
  background: #cbc3b4;
}

/* Interview */
.interview-section { padding-top: 22px; }
.interview-card {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(125px, .84fr);
  min-height: 286px;
}
.interview-copy { padding: 23px 16px 22px 20px; }
.interview-copy h2 {
  margin-bottom: 13px;
  font-size: clamp(27px, 7.5vw, 36px);
}
.interview-copy > p:not(.kicker) {
  color: rgba(242,238,229,.7);
  font-size: 12px;
  line-height: 1.55;
}
.interview-media { position: relative; min-width: 0; }
.interview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}
.publisher-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #111;
  border-radius: 50%;
  background: #fff;
  font-weight: 800;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Footer and fixed CTA */
.footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 4px var(--page-padding) 32px;
}
.footer img { width: 105px; }
.footer p {
  margin: 0;
  color: rgba(242,238,229,.42);
  font-size: 10px;
  text-align: right;
}
.instagram-fixed {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: var(--fixed-button-height);
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding:
    16px max(20px, env(safe-area-inset-right))
    calc(16px + env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  color: var(--color-bg);
  background: var(--color-accent);
  box-shadow: 0 -12px 34px rgba(0,0,0,.34);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.95);
  touch-action: none;
}
.lightbox figure {
  display: grid;
  width: 100%;
  max-height: 100vh;
  margin: 0;
  place-items: center;
}
.lightbox figure img {
  max-width: 100vw;
  max-height: calc(100vh - 110px);
  object-fit: contain;
}
.lightbox figcaption { margin-top: 12px; color: var(--color-text); }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  border: 0;
  background: rgba(255,255,255,.09);
  cursor: pointer;
}
.lightbox-close {
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 34px;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 42px;
  height: 70px;
  transform: translateY(-50%);
  font-size: 40px;
}
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

/* Design system */
.design-page { padding-bottom: 70px; background: #101110; }
.design-shell { padding: 28px var(--page-padding) 80px; }
.design-header,
.design-section {
  padding: 26px 0 34px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.design-logo { width: 150px; }
.design-header > p { color: var(--color-muted); }
.design-header .text-link { margin-top: 0; }
.design-section > h1,
.design-section > h2 { color: var(--color-text); }
.swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.swatches article {
  display: grid;
  gap: 6px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}
.swatches span {
  aspect-ratio: 1.8;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
}
.swatches strong { font-size: 12px; }
.swatches code { color: var(--color-muted); font-size: 11px; }
.swatch-light { color: var(--color-text); }
.type-card {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}
.type-card + .type-card { margin-top: 10px; }
.type-card > span {
  display: block;
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.type-card h1 { margin-bottom: 0; color: var(--color-accent); }
.type-card--body p { margin-bottom: 0; color: rgba(242,238,229,.72); }
.brand-assets { display: grid; gap: 10px; }
.asset-card {
  display: grid;
  min-height: 118px;
  place-items: center;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-sm);
}
.asset-card--dark { background: #050505; }
.asset-card--dark img { width: 180px; }
.asset-card--thread { background: var(--color-surface); }
.asset-card--thread img { width: 100%; height: 48px; object-fit: fill; }
.component-stack { display: grid; gap: 18px; align-items: start; }
.instagram-fixed--demo {
  position: static;
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: none;
}
.component-stack .instagram-circle { width: 52px; }
.design-card-demo { margin-top: 8px; }
.animal-list--demo { grid-template-columns: repeat(3, 1fr); margin-inline: 0; }
.design-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.design-gallery figure {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-sm);
  background: #d4cec1;
}
.design-gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8px; }
.design-gallery figcaption { padding: 9px 10px; color: #2d2d2a; background: #eee9df; font-size: 11px; }
.design-gallery-wide { grid-column: span 2; }
.design-gallery-wide img { aspect-ratio: 2 / 1; }

@media (max-width: 415px) {
  :root { --page-padding: 18px; }
  .hero { min-height: 530px; }
  .hero-copy { width: 72%; margin-top: 58px; }
  .hero-flamingo { right: -100px; max-width: 300px; bottom: 80px; }
  .hero-thread { bottom: -60px; }
  .about { gap: 17px; }
  .about-copy > p:last-child { font-size: 13px; }
  .animal-list { gap: 4px; }
  .animal-list li { grid-template-rows: 56px auto; }
  .animal-list img { height: 56px; }
  .animal-list span { font-size: 9px; }
  .interview-card { grid-template-columns: 1fr; }
  .interview-media { height: 210px; }
}

@media (min-width: 720px) {
  .site-shell {
    margin-top: 28px;
    margin-bottom: 110px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
