/* ==========================================================================
   PhotoPromoForm — подача в стиле sopicoviz.ru
   Светлая основа + оранжевые бегущие строки, чёрные блоки, Unbounded/Manrope,
   плавающие 3D-кактусы, контрастные лёгкие и тёмные зоны.
   ========================================================================== */
:root {
  --white: #FFFFFF;
  --ink: #0B0B0B;
  --ink-soft: #3A3A3A;
  --grey: #F4F4F4;
  --line: #E6E6E6;
  --orange: #E87034;
  --orange-soft: #FBE3D6;

  --content-width: 1240px;
  --radius: 24px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: 'Unbounded', 'Arial Black', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', Consolas, 'Menlo', monospace;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
}

::selection {
  background: var(--orange);
  color: #fff;
}

.accent {
  color: var(--orange);
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn--sm {
  padding: 11px 22px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover,
.btn--dark:focus-visible {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(232, 112, 52, 0.35);
}

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

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn--outline-light:hover {
  background: #fff;
  color: var(--ink);
  transform: translateY(-2px);
}

/* ===== LOGO ===== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition);
}

.logo:hover .logo__mark {
  background: var(--orange);
}

.logo__accent {
  color: var(--orange);
}

.logo--light .logo__mark {
  background: #fff;
  color: var(--ink);
}

.logo--light .logo__text {
  color: #fff;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 78px;
}

.menu {
  display: flex;
  gap: 2rem;
}

.menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--transition);
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--orange);
}

/* ===== MARQUEE (бегущая строка) ===== */
.hero__marquee {
  overflow: hidden;
  background: var(--orange);
  color: #fff;
  padding: 12px 0;
  transform: rotate(-1.2deg);
  position: relative;
  z-index: 2;
}

.hero__marquee--bottom {
  transform: rotate(1.2deg);
  background: var(--ink);
  margin-top: -10px;
}

.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 26s linear infinite;
}

.marquee__track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
  padding: 0 12px;
}

.marquee-band {
  overflow: hidden;
  background: var(--orange);
  color: #fff;
  padding: 16px 0;
}

.marquee-band .marquee__track {
  animation-duration: 32s;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero__img--1 {
  max-width: 260px;
  margin-bottom: 8px;
}

.hero__img--1 img {
  width: 100%;
  height: auto;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 7vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ===== SECTIONS / BLOCKS ===== */
.section {
  padding: 96px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.grid-2--media-last {
  grid-template-columns: 1fr 1fr;
}

.block__media {
  max-width: 380px;
  margin: 0 auto;
}

.block__media img {
  width: 100%;
  height: auto;
}

.block__media--wide {
  max-width: 320px;
  margin: 56px auto 0;
}

.block__media--huge {
  max-width: 300px;
}

/* Floating 3D cactus */
.cactus {
  position: relative;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.18));
}

.cactus:nth-of-type(even) {
  animation-delay: 1.6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(-1.5deg); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.eyebrow--light {
  color: var(--orange-soft);
}

.block__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.block__title--light,
.block__title--light + p {
  color: #fff;
}

.block__desc {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.ticks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
}

.ticks li::before {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 8px;
}

/* ===== BLACK "HOW IT WORKS" BLOCK ===== */
.block-how {
  background: var(--ink);
  color: #fff;
}

.block-how ::selection {
  background: var(--orange);
}

.block__head {
  max-width: 620px;
  margin-bottom: 56px;
}

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

.step {
  padding: 34px 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #141414;
  transition: transform var(--transition), border-color var(--transition);
}

.step:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
}

.step__num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 20px;
}

.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin-bottom: 10px;
}

.step__text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

/* ===== UPLOAD / FORM ===== */
.block-upload {
  background: var(--grey);
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
}

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 180px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  background: #fff;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.drop:hover,
.drop.is-dragover {
  border-color: var(--orange);
  background: var(--orange-soft);
  transform: translateY(-2px);
}

.drop.is-filled {
  border-color: var(--orange);
}

.drop__plus {
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  color: var(--orange);
}

.drop__text {
  font-size: 15px;
  color: var(--ink-soft);
}

.preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview img {
  max-height: 170px;
  border-radius: 16px;
  border: 4px solid #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.input {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input::placeholder {
  color: #9A9A9A;
}

.input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 112, 52, 0.18);
}

.field-error {
  color: #D93025;
  font-size: 14px;
}

.form-success {
  color: var(--orange);
  font-weight: 600;
  font-size: 15px;
}

/* ===== GALLERY: участники ===== */
.block-gallery {
  background: var(--white);
}

.block__text--center {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.galleria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  justify-items: center;
  max-width: 920px;
  margin: 0 auto;
}

.pcard {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--grey);
  box-shadow: 0 22px 44px rgba(11, 11, 11, 0.18);
  cursor: pointer;
  aspect-ratio: 718 / 804;
  width: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.pcard:hover {
  transform: scale(1.03);
  box-shadow: 0 30px 60px rgba(11, 11, 11, 0.26);
}

.pcard:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ===== CTA ===== */
.block-cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.block-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.block-cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.1;
}

.block-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 34px 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.footer__meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__mail {
  font-size: 15px;
  color: #fff;
  transition: color var(--transition);
}

.footer__mail:hover {
  color: var(--orange);
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Participant cards reveal */
.pc {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition), box-shadow var(--transition);
}

.pc-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOCUS ===== */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .pc {
    opacity: 1;
    transform: none;
  }

  .cactus {
    animation: none;
    transform: none;
  }
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-2--media-last { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .galleria { max-width: 720px; gap: 24px; }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .nav__inner { height: auto; padding: 14px 0; }
  .menu { gap: 1.1rem; }
  .menu a { font-size: 13px; }
  .nav .btn--sm { display: none; }

  .hero__inner { padding-top: 28px; padding-bottom: 56px; }
  .hero__img--1 { max-width: 180px; }

  .section { padding: 56px 0; }
  .block__media { max-width: 260px; }
  .block__media--wide { margin-top: 40px; }

  .galleria { grid-template-columns: 1fr; max-width: 460px; gap: 24px; }

  .step { padding: 26px 22px; }

  .footer__inner { flex-direction: column; text-align: center; }
}

/* ===== VERY SMALL ===== */
@media (max-width: 420px) {
  .menu { display: none; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
}
