/* ========== FONTS ========== */
@font-face {
  font-family: 'Commissioner';
  src: url('../fonts/Commissioner/commissioner-cyrillic-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Commissioner';
  src: url('../fonts/Commissioner/commissioner-cyrillic.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Commissioner';
  src: url('../fonts/Commissioner/commissioner-latin-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Commissioner';
  src: url('../fonts/Commissioner/commissioner-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  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;
}

/* ========== VARIABLES ========== */
:root {
  --bg:           #ffffff;
  --bg-alt:       #f7f7f7;
  --bg-dark:      #0a0a0a;
  --text:         #0a0a0a;
  --text-muted:   #5a5a5a;
  --text-light:   #ffffff;
  --border:       #e5e5e5;
  --border-dark:  rgba(255,255,255,0.15);

  --font: 'Commissioner', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius:    12px;
  --radius-sm:  6px;

  --header-h: 72px;

  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  6rem;

  --max-w: 1280px;
  --ease: 0.3s ease;
  --ease-out: cubic-bezier(.16,1,.3,1);
  --motion: 0.45s var(--ease-out);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ========== TYPOGRAPHY ========== */
h1 {
  font-size: clamp(2.8rem, 7.5vw, 7rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h3 {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 600;
  line-height: 1.35;
}
p {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== LAYOUT ========== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: var(--sp-xl) 0; }
.section--alt { background: var(--bg-alt); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--ease-out), color var(--ease-out), border-color var(--ease-out), opacity var(--ease-out), box-shadow var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  box-shadow: 0 0 0 0 transparent;
}
.btn--primary {
  background: var(--bg-dark);
  color: var(--text-light);
  border-color: var(--bg-dark);
}
.btn--primary:hover { background: #2a2a2a; border-color: #2a2a2a; box-shadow: 0 0 0 4px rgba(10,10,10,0.14); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn--outline:hover { background: var(--text); color: var(--text-light); box-shadow: 0 0 0 4px rgba(10,10,10,0.14); }

.btn--white {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #ffffff;
}
.btn--white:hover { background: #e8e8e8; border-color: #e8e8e8; box-shadow: 0 0 0 4px rgba(255,255,255,0.18); }

.btn--lg {
  padding: 1.1rem 2rem 1.1rem 2.25rem;
  font-size: 1rem;
}
.btn__arrow { transition: transform var(--ease-out); }
.btn--lg:hover .btn__arrow { transform: translateX(3px); }

.btn--submit {
  padding: 1.1rem 2rem 1.1rem 2.25rem;
  font-size: 1rem;
  align-self: flex-start;
  width: auto;
}

.btn--link {
  background: transparent;
  color: var(--text);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn--link:hover { opacity: 0.6; }

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 24px rgba(0,0,0,0.06);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.header__logo {
  margin-right: auto;
  display: flex;
  align-items: center;
  min-width: 0;
}
.header__logo-img {
  height: 28px;
  width: auto;
  max-width: 180px;
  display: block;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease);
}
.nav__link:hover { color: var(--text); }

.header__cta { flex-shrink: 0; margin-left: var(--sp-xs); }

/* Пампаламповость toggle */
.pl-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.pl-switch {
  position: relative;
  width: 32px;
  height: 32px;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 5px;
  background: linear-gradient(155deg, #fdfdfd, #e3e3e3);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
}
.pl-switch__screw {
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 35% 30%, #fff, #bcbcbc 65%, #8f8f8f);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.pl-switch__screw::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 3.5px; height: 0.5px;
  background: rgba(0,0,0,0.35);
  transform: translate(-50%, -50%) rotate(35deg);
}
.pl-switch__screw--left { left: 2.5px; }
.pl-switch__screw--right { right: 2.5px; }
.pl-switch__slot {
  position: absolute;
  top: 50%; left: 50%;
  width: 9px;
  height: 17px;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  background: #d3d3d3;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(0,0,0,0.08);
}
.pl-switch__paddle {
  position: absolute;
  left: 50%;
  top: 1px;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  transform: translateX(-50%);
  background: linear-gradient(155deg, #ffffff, #dcdcdc);
  box-shadow: 0 1px 2px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 1px rgba(0,0,0,0.08);
  transition: top var(--ease-out);
}
.pl-switch[aria-checked="false"] .pl-switch__paddle { top: 9px; }
.pl-toggle__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--ease-out);
}
.pl-toggle__label:hover { color: var(--text); }
body.floaters-off .floater-wrap { display: none; }
@media (max-width: 900px) {
  .pl-toggle__label { display: none; }
}
@media (max-width: 768px) {
  .pl-toggle { display: none; }
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.header__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.open span:nth-child(2) { opacity: 0; }
.header__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== HERO ========== */
.hero {
  position: relative;
  padding-top: var(--header-h);
  padding-bottom: var(--sp-xl);
}

/* --- Верхняя строка: текст | видео --- */
.hero__top {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: 3rem;
  align-items: center;
  padding: var(--sp-lg) 0 0;
  direction: rtl;
  position: relative;
  z-index: 1;
}

/* --- Content (левая колонка) --- */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  direction: ltr;
}
.hero__player-wrap { direction: ltr; }
.hero__title {
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero__subtitle {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 34ch;
}

/* --- Player (правая колонка) --- */
.hero__player-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__player {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 620px;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
}
.hero__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* img всегда поверх видео — закрывает чёрный кадр при смене src */
img.hero__frame   { z-index: 2; opacity: 1; transition: opacity 0.4s ease; }
video.hero__frame { z-index: 1; opacity: 1; }

/* --- Нижняя полоса: фичи + кнопка --- */
.hero__bottom {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  padding: var(--sp-lg) 0;
  border-top: 1px solid var(--border);
}
.hero__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  flex: 1;
}
.hero__feature {
  padding-left: 1.75rem;
  border-left: 1px solid var(--border);
}
.hero__feature:first-child {
  padding-left: 0;
  border-left: none;
}
.hero__feature h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.hero__feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero__cta { flex-shrink: 0; }

/* ========== SECTION COMMON ========== */
.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-sm);
}
.section__header {
  max-width: 600px;
  margin-bottom: var(--sp-lg);
}
.section__title { margin: var(--sp-xs) 0 var(--sp-md); }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: var(--sp-md);
}
.feature-list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text);
  font-weight: 700;
}

/* ========== EXPERIENCE ========== */
.experience {
  position: relative;
}
.experience__sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow: hidden;
}
.experience__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.experience__left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-lg) var(--sp-xl) var(--sp-lg) 0;
  overflow-y: auto;
}
.experience__right {
  position: relative;
  overflow: hidden;
}

/* Slides — full-bleed photo, products overlaid */
.experience__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}
.experience__slide.active {
  opacity: 1;
  pointer-events: auto;
}
.experience__photo-wrap {
  position: absolute;
  inset: 0;
}
.experience__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Product overlay — scroll-driven, full panel height */
.experience__products {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}
.experience__product {
  position: absolute;
  top: 0;
  right: 1.5rem;
  width: 296px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  will-change: transform;
  pointer-events: auto;
}
.experience__product-img {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 6px;
  display: block;
}
.experience__product-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.experience__product-name {
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text);
}

/* Progress dots */
.experience__dots {
  position: absolute;
  top: 50%;
  right: 0.625rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
  z-index: 5;
}
.experience__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: height 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
}
.experience__dot.active {
  height: 18px;
  border-radius: 2px;
  background: var(--text);
}

/* Mobile swiper */
.experience__mobile { display: none; }
.experience__m-header {
  padding: var(--sp-lg) 2rem var(--sp-md);
  border-bottom: 1px solid var(--border);
}
.experience__m-header .section__title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.experience__m-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.experience__m-track::-webkit-scrollbar { display: none; }
.experience__m-slide {
  flex-shrink: 0;
  width: 100%;
  scroll-snap-align: start;
}
.experience__m-photo {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.experience__m-products {
  display: flex;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  border-bottom: 1px solid var(--border);
}
.experience__m-product {
  flex: 1;
  max-width: 140px;
}
.experience__m-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: var(--sp-sm) 0;
}
.experience__m-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s;
}
.experience__m-dot.active { background: var(--text); }

/* ========== STUDIO ========== */
.studio__header {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--sp-xl);
}
.studio__header .section__title { margin: var(--sp-xs) 0 var(--sp-md); }

/* Lead grid — full viewport width, outside container */
.studio__lead {
  position: relative;
  margin-bottom: var(--sp-xl);
}
.studio__lead-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.studio__cell {
  background: #f0f0f0;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}
.studio__cell--large {
  grid-column: 2 / span 2;
  grid-row: 1 / span 2;
  aspect-ratio: auto;
}
.studio__cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f5;
  display: block;
  transition: opacity 0.35s ease;
}
.studio__cell img.fading { opacity: 0; }

/* Photo section */
.studio__photo {
  position: relative;
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: var(--sp-xl);
  align-items: center;
  padding: var(--sp-xl) 0;
}
.studio__photo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-sm);
}
.studio__photo-h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.studio__phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
}
/* iPhone mockup — real device frame, resting look via drop-shadow + slight tilt */
.iphone-mock {
  position: relative;
  width: 320px;
  margin: 0 auto;
  transform: rotate(-3deg);
  filter: drop-shadow(0 26px 34px rgba(0,0,0,0.16)) drop-shadow(0 3px 8px rgba(0,0,0,0.10));
}
.iphone-mock::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 72%;
  height: 10%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.18), transparent 72%);
  transform: translateX(-50%);
  filter: blur(5px);
  z-index: -1;
}
.iphone-mock__frame {
  width: 100%;
  display: block;
  position: relative;
  pointer-events: none;
}
.iphone-mock__screen {
  position: absolute;
  left: 3.8%;
  right: 3.5%;
  top: 1.5%;
  bottom: 1.35%;
  border-radius: 40px;
  overflow: hidden;
  background: #111;
  z-index: 2;
}

/* Demo states */
.demo-state {
  position: absolute;
  inset: 0;
  background: #111;
}
.demo-state--hidden { display: none; }

/* Camera */
.demo-camera-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.camera-chrome {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.camera-chrome__top {
  padding: 58px 20px 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
  display: flex;
  justify-content: center;
}
.camera-chrome__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.9);
}
.camera-chrome__focus {
  flex: 1;
  margin: 12px 32px;
  border: 1.5px solid rgba(255,218,90,0.65);
  border-radius: 6px;
}
.camera-chrome__bottom {
  padding: 14px 20px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  display: flex;
  justify-content: center;
  pointer-events: all;
}

/* Action buttons inside phone */
.demo-action-btn {
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 32px;
  padding: 0.875rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: transform 0.1s ease, background 0.12s ease;
}
.demo-action-btn:hover { background: #fff; transform: scale(1.04); }
.demo-action-btn:active { transform: scale(0.96); }

/* Processing */
.demo-progress-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
}
.demo-progress-bar {
  width: 100%;
  max-width: 180px;
  height: 2px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  overflow: hidden;
}
.demo-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
}
.demo-progress-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Result image */
.demo-result-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
  display: block;
}

/* Canvas boomerang */
.demo-result-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #111;
}

.demo-result-chrome {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px 24px;
  display: flex;
  justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* Animating overlay */
.demo-overlay-progress {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  z-index: 5;
}

/* Flash */
.demo-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

/* Button natural width in flex columns */
.studio__photo-text .btn,
.experience__left .btn { align-self: flex-start; }

/* ========== PARTNERS ========== */
.partners { position: relative; overflow: hidden; }
.partners .section__label { display: block; margin-bottom: var(--sp-lg); }
.partners__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-xl);
}
.partner {
  display: flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.partner:hover { opacity: 1; }
.partner__logo {
  height: 36px;
  width: auto;
  display: block;
}
.partner__logo--multiply { mix-blend-mode: multiply; }
.partner__logo--invert   { filter: invert(1); }

/* ========== CTA DARK ========== */
.cta-dark {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-light);
}
.cta-dark .container { display: flex; justify-content: center; position: relative; z-index: 1; }
.cta-dark__content {
  text-align: center;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}
.cta-dark h2 { color: var(--text-light); }
.cta-dark p  { color: rgba(255,255,255,0.55); }

/* ========== FOOTER ========== */
.footer {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--sp-xl) 0 var(--sp-md);
  overflow: hidden;
}
.footer .container { position: relative; z-index: 1; }
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}
.footer__logo {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-xs);
}
.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-sm);
}
.footer__social { display: flex; gap: 0.75rem; }
.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--ease-out), border-color var(--ease-out), background var(--ease-out);
}
.footer__social-link:hover {
  color: var(--text-light);
  background: var(--bg-dark);
  border-color: var(--bg-dark);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-md);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: var(--sp-sm);
}
.footer__copy { font-size: 0.85rem; color: var(--text-muted); }
.footer__legal { display: flex; gap: var(--sp-md); flex-wrap: wrap; }
.footer__legal a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--ease);
}
.footer__legal a:hover { color: var(--text); }

/* Footer requisites */
.footer__requisites {
  text-align: right;
}
.footer__requisites p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== CONTACT FORM ========== */
.contact { position: relative; overflow: hidden; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-xl);
  align-items: start;
}
.contact__lead { position: static; }
.contact__lead h2 { margin: var(--sp-xs) 0 var(--sp-sm); }
.contact__lead p  { color: var(--text-muted); font-size: 1rem; }

.contact__form { display: flex; flex-direction: column; gap: 1.25rem; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form__field { display: flex; flex-direction: column; gap: 0.375rem; }
.form__field--full { grid-column: 1 / -1; }
.form__field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form__field input {
  font-family: var(--font);
  font-size: 1.05rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text);
  transition: border-color var(--ease-out), background var(--ease-out), box-shadow var(--ease-out);
  outline: none;
  width: 100%;
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: #a3a3a3; }
.form__field input:focus,
.form__field textarea:focus {
  border-color: var(--text);
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(10,10,10,0.06);
}
.form__field textarea {
  font-family: var(--font);
  font-size: 1.05rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text);
  transition: border-color var(--ease-out), background var(--ease-out), box-shadow var(--ease-out);
  outline: none;
  width: 100%;
  resize: vertical;
  min-height: 96px;
  line-height: 1.55;
}
.form__field-optional {
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

/* Custom checkbox */
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.form__check input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.form__check-box {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 2px solid var(--text);
  border-radius: 6px;
  margin-top: 1px;
  transition: background var(--ease-out), border-color var(--ease-out), transform var(--ease-out), box-shadow var(--ease-out);
  display: flex; align-items: center; justify-content: center;
}
.form__check:hover .form__check-box {
  transform: scale(1.08);
  box-shadow: 0 0 0 5px rgba(10,10,10,0.06);
}
.form__check input:checked + .form__check-box {
  background: var(--text);
  border-color: var(--text);
}
.form__check input:checked + .form__check-box::after {
  content: '';
  display: block;
  width: 6px; height: 11px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.form__check-text { font-size: 0.76rem; color: #9a9a9a; line-height: 1.5; }
.form__check-text a { color: #9a9a9a; text-decoration: none; }
.form__check-text a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.form__check--sm .form__check-text { font-size: 0.74rem; }

/* Toggle switch */
.form__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text);
}
.form__toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.form__toggle-track {
  position: relative;
  width: 36px; height: 20px;
  background: var(--border);
  border-radius: 100px;
  flex-shrink: 0;
  transition: background var(--ease);
}
.form__toggle input:checked ~ .form__toggle-track { background: var(--text); }
.form__toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.form__toggle input:checked ~ .form__toggle-track .form__toggle-thumb { transform: translateX(16px); }
.form__toggle--sm .form__toggle-track { width: 32px; height: 18px; }
.form__toggle--sm .form__toggle-thumb { width: 14px; height: 14px; }
.form__toggle--sm input:checked ~ .form__toggle-track .form__toggle-thumb { transform: translateX(14px); }

.form__marketing { display: flex; flex-direction: column; gap: 0.75rem; }

/* Submit */
#form-submit:disabled { opacity: 0.4; cursor: not-allowed; }
#form-submit:disabled:hover { background: var(--bg-dark); border-color: var(--bg-dark); }

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(calc(100vw - 2rem), 720px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 1.25rem 1.5rem;
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner__text { flex: 1; font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; min-width: 200px; }
.cookie-banner__text a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-btn { padding: 0.625rem 1.25rem; font-size: 0.85rem; }

/* Cookie settings panel */
.cookie-panel {
  position: fixed;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 201;
  width: min(calc(100vw - 2rem), 520px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  padding: 1.5rem;
}
.cookie-panel__title { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }
.cookie-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  border-top: 1px solid var(--border);
}
.cookie-panel__row strong { font-size: 0.88rem; display: block; margin-bottom: 0.2rem; }
.cookie-panel__row p    { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.cookie-always { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.cookie-panel__footer { display: flex; gap: 0.75rem; justify-content: flex-end; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: 0.5rem; }

/* ========== ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--motion), transform var(--motion);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  :root { --sp-xl: 4rem; }

  .header__nav { display: none; }
  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    padding: var(--sp-md);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 99;
    gap: var(--sp-sm);
  }
  .header__cta  { display: none; }
  .header__burger { display: flex; }
  .header__logo-img { height: 22px; max-width: 140px; }

  .hero__top {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: var(--sp-lg);
    padding-bottom: 0;
  }
  .hero__bottom {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-md);
  }
  .hero__features { grid-template-columns: 1fr; }
  .hero__feature { padding-left: 0; border-left: none; padding-top: 1rem; border-top: 1px solid var(--border); }
  .hero__feature:first-child { padding-top: 0; border-top: none; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__player { border-radius: 14px; max-width: none; }

  .studio__photo {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
  .studio__phone-col { order: -1; }
  .iphone-mock { width: 250px; }
  .iphone-mock__screen { border-radius: 32px; }
  .studio__lead-grid { grid-template-columns: repeat(4, 1fr); }
  .studio__cell--large { grid-column: 2 / span 2; grid-row: 1 / span 2; }

  .experience__sticky { display: none; }
  .experience__mobile { display: block; }
  .experience { min-height: 0 !important; border-top: none; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__lead { position: static; }
  .form__row { grid-template-columns: 1fr; }

  .footer__top { flex-direction: column; gap: var(--sp-lg); }
  .footer__requisites { text-align: left; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal { gap: var(--sp-sm); }
}


.scroll-top { position: fixed; bottom: 2rem; left: 2rem; width: 42px; height: 42px; background: var(--bg-dark); color: var(--text-light); border: 1px solid var(--border); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(6px); transition: opacity 0.2s ease, transform 0.2s ease; z-index: 200; }
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: #1a1a1a; }

/* ========== FLOATERS ========== */
.floater-wrap {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}
.floater-wrap--behind { z-index: 0; }
.floater-wrap--front { z-index: 5; }
.floater-img {
  width: 100%;
  display: block;
  animation: floaterBob 8s ease-in-out infinite;
}
.floater-img--blur { opacity: 0.85; }
.floater-wrap--front .floater-img { opacity: 0.92; }
@keyframes floaterBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(3deg); }
}
@media (max-width: 768px) {
  .floater-wrap { display: none; }
}
