/* kazankin.com — Bold design system */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/manrope-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/manrope-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/manrope-500-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/manrope-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/manrope-600-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/manrope-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/manrope-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/manrope-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/unbounded-600-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/unbounded-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/unbounded-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/unbounded-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0e0e13;
  --panel: #17171f;
  --fg: #f2f2f6;
  --muted: #82828f;
  --accent: #7c6cff;
  --accent2: #a99bff;
  --line: rgba(242, 242, 246, 0.09);
  --disp: 'Unbounded', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
*::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Manrope', sans-serif;
}

a { color: inherit; }
button { font-family: inherit; color: inherit; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(24px, 4vw, 48px);
  pointer-events: none;
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  pointer-events: auto;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.brand img {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  transition: opacity .25s ease;
}
.brand-avatar-hidden .brand img { opacity: 0; }
.brand span { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.header-nav { display: flex; align-items: center; gap: 4px; pointer-events: auto; }
.nav-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  text-decoration: none;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--fg); }
.lang-toggle {
  margin-left: 6px;
  background: var(--accent);
  border: none;
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 16px;
  text-decoration: none;
  transition: filter .2s ease;
}
.lang-toggle:hover { filter: brightness(1.1); }
.tg-button {
  display: none;
  margin-left: 6px;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  text-decoration: none;
}

/* ---------- Stage (scroll-snap container) ---------- */
.stage {
  position: fixed;
  inset: 0;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  background: var(--bg);
  overscroll-behavior: none;
}
.sec {
  height: 100vh;
  height: 100svh;
  scroll-snap-align: start;
}

/* ---------- Shared components ---------- */
.badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cta {
  margin-top: 16px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  border-radius: 100px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  transition: filter .2s ease, transform .2s ease;
}
.cta:hover { filter: brightness(1.1); transform: translateY(-1px); }
.info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}
.info-card .label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.info-card .body { color: var(--muted); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.55; font-weight: 500; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(40px, 6vw, 104px);
  gap: 26px;
}
.hero-text h1 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 92px);
  line-height: 1.0;
  letter-spacing: -.01em;
}
.hero-text p {
  max-width: 30em;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.scroll-cue { margin-top: 12px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.scroll-cue i {
  display: inline-flex;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-style: normal;
  flex: 0 0 auto;
}
.scroll-cue-mobile { display: none; }
.hero-photo { display: flex; align-items: center; padding: clamp(28px, 4vw, 60px) clamp(40px, 5vw, 84px) clamp(28px, 4vw, 60px) 0; }
.hero-photo img {
  width: 100%;
  height: 76vh;
  height: 76svh;
  object-fit: cover;
  object-position: 50% 18%;
  border: 1px solid var(--line);
  border-radius: 22px;
}

/* ---------- Cases ---------- */
.sec-cases { overflow: hidden; position: relative; }
.cases-nav {
  position: absolute;
  right: clamp(24px, 4vw, 48px);
  bottom: 26px;
  display: flex;
  gap: 10px;
  z-index: 5;
}
.cases-nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.cases-nav button:hover { border-color: rgba(242, 242, 246, 0.25); transform: translateY(-1px); }
.cases-nav button:disabled { opacity: .35; cursor: default; }
.cases-nav button:disabled:hover { border-color: var(--line); transform: none; }
.cases-cue { display: none; }
.cases-scroller {
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.cases-intro {
  flex: 0 0 46vw;
  min-width: 46vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 0 clamp(40px, 5vw, 84px);
  scroll-snap-align: start;
}
.cases-intro h2 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(24px, 2.7vw, 42px);
  line-height: 1.2;
  text-wrap: balance;
  letter-spacing: -.01em;
}
.cases-intro .sub { color: var(--muted); font-size: 16px; font-weight: 600; }
.case-slide {
  flex: 0 0 68vw;
  min-width: 68vw;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 clamp(26px, 3vw, 56px);
  scroll-snap-align: start;
}
/* точка снапа последней карточки должна быть достижима, иначе браузер
   тянется за край контента и показывает пустой экран */
.case-slide:last-child { scroll-snap-align: end; }
.case-card {
  width: 100%;
  min-height: min(66vh, 620px);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 24px;
  padding: clamp(30px, 3.2vw, 54px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .2s ease;
}
.case-card:hover { border-color: rgba(242, 242, 246, 0.18); }
.case-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.case-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.case-tags span {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent2);
  background: rgba(124, 108, 255, 0.13);
  border-radius: 100px;
  padding: 6px 14px;
}
.case-num { font-family: var(--disp); font-size: clamp(28px, 2.8vw, 48px); font-weight: 700; color: var(--accent); line-height: 1; }
.case-card h3 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(28px, 3.3vw, 54px);
  line-height: 1.04;
  letter-spacing: -.01em;
}
.case-role { color: var(--muted); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; max-width: 46em; font-weight: 500; }
.case-divider { height: 1px; background: var(--line); margin-top: auto; }
.case-metrics { list-style: none; display: grid; gap: 13px; }
.case-metrics li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: clamp(15px, 1.3vw, 20px);
  line-height: 1.4;
  font-weight: 600;
}
.case-metrics li::before {
  content: "";
  flex: 0 0 auto;
  margin-top: .4em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- Project sections (Prodazhio / MVP) ---------- */
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.project-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 0 clamp(40px, 6vw, 104px);
}
.project-name h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 72px);
  line-height: 1;
  letter-spacing: -.02em;
}
.project-name .tagline { color: var(--muted); font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; }
.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 0 clamp(40px, 5vw, 84px);
  border-left: 1px solid var(--line);
}
.project-info .lead { font-size: clamp(18px, 1.7vw, 27px); line-height: 1.45; font-weight: 600; }
.project-info .cards { display: grid; gap: 20px; }

/* ---------- Contacts ---------- */
.contacts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 26px;
  padding: 84px clamp(40px, 6vw, 104px) 24px;
}
.contacts-head { max-width: 1000px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.contacts .badge { align-self: center; }
.contacts-head h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.contacts-head p { color: var(--muted); font-size: clamp(16px, 1.3vw, 20px); font-weight: 500; }
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); gap: 12px; }
.channel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color .2s ease, transform .2s ease;
}
.channel:hover { border-color: rgba(242, 242, 246, 0.18); transform: translateY(-1px); }
.channel .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent2); }
.channel .value { font-size: clamp(15px, 1.3vw, 19px); font-weight: 600; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  width: 100%;
  max-width: 984px;
  text-align: left;
}
.requisites { color: var(--muted); font-size: 13px; line-height: 1.7; font-weight: 500; }
.requisites .label {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 8px;
}
.privacy-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.privacy-link:hover { color: var(--fg); }

/* ---------- Privacy page ---------- */
.doc-page {
  min-height: 100vh;
  padding: 120px clamp(24px, 6vw, 104px) 80px;
}
.doc {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.doc h1 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(19px, 5.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 8px;
  overflow-wrap: break-word;
}
.doc h2 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-top: 22px;
}
.doc p, .doc li { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.65; color: var(--muted); font-weight: 500; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 8px; }
.doc a { color: var(--accent2); text-decoration: underline; text-underline-offset: 3px; }
.doc .updated { margin-top: 24px; font-size: 13px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 80;
  margin: 0 auto;
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 44px 18px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 13px; line-height: 1.5; color: var(--muted); font-weight: 500; margin: 0 0 12px; }
.cookie-banner p a { color: var(--accent2); text-decoration: underline; text-underline-offset: 3px; }
.cookie-accept {
  background: var(--accent);
  border: none;
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 9px 20px;
}
.cookie-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.cookie-close:hover { color: var(--fg); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav-link { display: none; }
  .tg-button { display: inline-block; }
  .lang-toggle {
    background: none;
    border: 1px solid var(--line);
    color: var(--muted);
    margin-left: 0;
  }

  .stage { scroll-snap-type: y proximity; }
  .sec { height: auto; min-height: 100vh; min-height: 100svh; }

  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 92px clamp(24px, 6vw, 40px) 0; gap: 18px; }
  .hero-text .scroll-cue { display: none; }
  .hero-photo { padding: 18px clamp(24px, 6vw, 40px) 24px; flex-direction: column; align-items: center; gap: 16px; }
  .hero-photo img { width: 70%; height: auto; max-height: 44vh; max-height: 44svh; object-fit: cover; }
  .scroll-cue-mobile { display: flex; }

  .sec-cases { height: 100vh; height: 100svh; }
  .cases-intro { flex: 0 0 86vw; min-width: 86vw; padding: 92px clamp(24px, 6vw, 40px) 76px; justify-content: center; }
  .cases-cue { display: flex; margin-top: 6px; }
  .case-slide { flex: 0 0 90vw; min-width: 90vw; padding: 92px 16px 76px; align-items: stretch; }
  .case-card { height: 100%; min-height: 0; overflow-y: auto; padding: 24px; gap: 16px; }

  .project { grid-template-columns: 1fr; }
  .project-name { padding: 96px clamp(24px, 6vw, 40px) 0; }
  .project-info { padding: 32px clamp(24px, 6vw, 40px) 48px; border-left: none; }

  .cases-nav { bottom: 16px; }

  .contacts { padding: 96px clamp(24px, 6vw, 40px) 48px; gap: 24px; }
  .channels { grid-template-columns: 1fr; }

  .doc-page { padding: 100px 20px 60px; }
}

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