/* ===== Variables ===== */
:root {
  --teal: #00a19c;
  --teal-dark: #008a86;
  --teal-light: #00c4be;
  --black: #0a0a0a;
  --dark: #1a1a1a;
  --gray: #2a2a2a;
  --gray-mid: #666;
  --white: #f5f5f5;
  --paper: #e8e8e6;
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Oswald', sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--black);
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* ===== Noise texture overlay ===== */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Brush stroke utility ===== */
.brush {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 0.15em 0.6em;
  transform: skewX(-2deg);
  position: relative;
  clip-path: polygon(2% 8%, 98% 0%, 96% 92%, 0% 100%);
}
.stroke-lg { font-size: clamp(2rem, 5vw, 3.5rem); font-family: var(--font-display); letter-spacing: 0.04em; }
.stroke-md { font-size: clamp(1.2rem, 3vw, 1.8rem); font-family: var(--font-display); letter-spacing: 0.06em; }

.text-teal { color: var(--teal); }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--teal);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo__small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-mid);
}
.logo__main {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: 0.05em;
}
.logo__main em { color: var(--teal); font-style: normal; }
.logo__main--footer { font-size: 2rem; }

.nav { display: flex; gap: 2rem; align-items: center; }
.nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  transition: color 0.2s;
}
.nav a:hover { color: var(--teal); }
.nav__cta {
  background: var(--teal);
  padding: 0.5rem 1.2rem !important;
  clip-path: polygon(4% 0%, 100% 0%, 96% 100%, 0% 100%);
}
.nav__cta:hover { background: var(--teal-light); color: var(--black) !important; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.btn--primary {
  background: var(--teal);
  color: var(--white);
  clip-path: polygon(3% 0%, 100% 0%, 97% 100%, 0% 100%);
}
.btn--primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}
.btn--large { font-size: 1.3rem; padding: 1rem 2.5rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  background: var(--black);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(0, 161, 156, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, var(--black) 40%, var(--dark) 100%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,161,156,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 10rem);
}
.hero__content {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.hero__quote {
  font-size: 0.9rem;
  color: var(--teal-light);
  font-style: italic;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  width: 100%;
}
.hero__title {
  font-family: var(--font-display);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
}
.hero__title-line {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.02em;
  width: 100%;
}
.hero__title .brush {
  margin: 0;
  transform: skewX(-2deg);
  transform-origin: left center;
  clip-path: polygon(0 0, 100% 0, 98% 100%, 0 100%);
}
.hero__lead {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 100%;
  margin-bottom: 2rem;
  font-weight: 400;
  width: 100%;
}
.hero__content .btn {
  margin: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.hero__character {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: stretch;
  min-height: calc(100vh - 10rem);
  min-width: 0;
  z-index: 1;
  overflow: visible;
}
.hero__character::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 10%;
  width: min(520px, 80%);
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 161, 156, 0.45) 0%, transparent 70%);
  pointer-events: none;
}
.hero__character img {
  position: absolute;
  right: max(-6vw, -80px);
  bottom: -2.5rem;
  height: min(calc(100vh - 4rem), 920px);
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 0 50px rgba(0, 161, 156, 0.45)) drop-shadow(10px 10px 0 rgba(0, 161, 156, 0.18));
  transform: scaleX(-1);
  transition: transform 0.4s, filter 0.4s;
}
.hero__character:hover img {
  transform: scaleX(-1) scale(1.02);
  filter: drop-shadow(0 0 60px rgba(0, 161, 156, 0.55)) drop-shadow(10px 10px 0 rgba(0, 161, 156, 0.2));
}

/* ===== Mission ===== */
.mission {
  background: var(--teal);
  padding: 3rem 0;
  position: relative;
}
.mission::before,
.mission::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--black);
  clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
}
.mission::before { top: -1px; transform: scaleY(-1); }
.mission::after { bottom: -1px; }
.mission__inner { text-align: center; }
.mission__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mission__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--black);
  margin-top: 0.5rem;
  letter-spacing: 0.08em;
}

/* ===== Section titles ===== */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
  padding-bottom: 1rem;
  position: relative;
  display: block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 4px;
  background: var(--teal);
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}
.section-title--light { color: var(--white); }
.section-subtitle {
  color: var(--teal-light);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.75rem;
  margin-bottom: 3rem;
  display: block;
  line-height: 1.4;
}

/* ===== Program ===== */
.program {
  padding: 5rem 0;
  background: var(--paper);
  background-image:
    linear-gradient(rgba(0,161,156,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,161,156,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.program__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.program__item {
  background: var(--white);
  border-left: 4px solid var(--teal);
  padding: 1.75rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.program__item:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 var(--teal);
}
.program__icon {
  width: 48px;
  height: 48px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--white);
}
.program__icon svg { width: 24px; height: 24px; }
.program__item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.program__item p { color: var(--gray-mid); font-weight: 400; font-size: 0.95rem; }

/* ===== Candidates ===== */
.candidates {
  padding: 5rem 0;
  background: var(--black);
  position: relative;
}
.candidates::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, var(--paper), var(--black));
  z-index: 0;
  pointer-events: none;
}

.candidates .container {
  position: relative;
  z-index: 1;
}

.candidates__list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: relative;
}

.candidate-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--dark);
  border: 1px solid rgba(0, 161, 156, 0.3);
  padding: 2rem;
  position: relative;
}
.candidate-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--teal);
}
.candidate-card--reverse .candidate-card__image { order: 2; }
.candidate-card--reverse .candidate-card__body { order: 1; }
.candidate-card--full {
  grid-template-columns: 1fr;
  text-align: center;
}
.candidate-card__image {
  overflow: hidden;
  border: 2px solid var(--teal);
  box-shadow: 6px 6px 0 rgba(0, 161, 156, 0.25);
}
.candidate-card__image--wide { max-width: 900px; margin: 0 auto; width: 100%; }
.candidate-card__image--character {
  background: radial-gradient(ellipse at center bottom, rgba(0, 161, 156, 0.2) 0%, transparent 65%);
  border: none;
  box-shadow: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 360px;
  padding: 1rem;
}
.candidate-card__image--character img {
  max-height: 380px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}
.candidate-card__image--placeholder {
  position: relative;
}
.candidate-card__image--placeholder::after {
  content: 'заглушка';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  color: var(--teal-light);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--teal);
}
.candidate-card__body {
  color: var(--white);
  text-align: left;
  min-width: 0;
}
.candidate-card__body--center { padding: 1rem 0; }
.candidate-card__tag {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1rem;
}
.candidate-card__body h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.candidate-card__team {
  font-size: clamp(3rem, 8vw, 5rem) !important;
  color: var(--white);
}
.candidate-card__role {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--teal-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.candidate-card__role.brush { color: var(--white); display: inline-block; margin-bottom: 1rem; }
.candidate-card__motto {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.candidate-card__slogan {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--teal-light);
  margin: 1.5rem 0;
  letter-spacing: 0.04em;
}
.candidate-card__quote {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--black);
  border-left: 3px solid var(--teal);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--teal-light);
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-align: left;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--teal);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.values-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 200px;
}
.value__icon {
  width: 56px;
  height: 56px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
.value__icon svg { width: 28px; height: 28px; }
.value span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  color: rgba(255,255,255,0.85);
}

/* ===== Vote CTA ===== */
.vote {
  background: var(--black);
  padding: 0 0 5rem;
}
.vote__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: linear-gradient(135deg, var(--dark) 0%, var(--gray) 100%);
  border: 2px solid var(--teal);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.vote__inner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0,161,156,0.2) 0%, transparent 70%);
}
.vote__icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  color: var(--teal);
}
.vote__icon svg { width: 100%; height: 100%; }
.vote__content { position: relative; }
.vote__dates {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal-light);
  margin-bottom: 0.5rem;
}
.vote__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}
.vote__desc {
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* ===== Disclaimer ===== */
.disclaimer {
  background: #111;
  border-top: 3px dashed var(--teal);
  border-bottom: 3px dashed var(--teal);
  padding: 1.5rem 0;
}
.disclaimer__inner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.disclaimer__badge {
  flex-shrink: 0;
  background: var(--teal);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  clip-path: polygon(4% 0%, 100% 0%, 96% 100%, 0% 100%);
}
.disclaimer__text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 400;
}
.disclaimer__text strong {
  color: var(--white);
  font-weight: 600;
}

/* ===== Footer ===== */
.footer {
  background: var(--black);
  border-top: 3px solid var(--teal);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__slogan {
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
  text-transform: uppercase;
}
.footer__legal {
  max-width: 480px;
  font-size: 0.7rem;
  color: var(--gray-mid);
  line-height: 1.6;
}
.footer__legal p + p { margin-top: 0.5rem; }

/* ===== Mobile nav ===== */
.nav--open {
  display: flex !important;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--black);
  flex-direction: column;
  padding: 2rem;
  gap: 1.5rem;
  border-bottom: 2px solid var(--teal);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero {
    padding: 4.75rem 0 2.5rem;
    min-height: auto;
    align-items: flex-start;
  }

  .hero .container.hero__grid {
    width: 100%;
    max-width: 100%;
    padding: 0 1.25rem;
    gap: 1.25rem;
    min-height: auto;
  }

  .hero__grid,
  .candidate-card,
  .candidate-card--reverse {
    grid-template-columns: 1fr;
  }

  .hero__character {
    order: -1;
    min-height: auto;
    margin: 0 -1.25rem;
    width: calc(100% + 2.5rem);
    justify-content: center;
    overflow: hidden;
  }

  .hero__character::before {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 55%;
  }

  .hero__character img {
    position: static;
    width: min(130vw, 620px);
    height: auto;
    max-width: none;
    min-height: 300px;
    object-position: bottom center;
    transform: scaleX(-1);
  }

  .hero__character:hover img {
    transform: scaleX(-1) scale(1.02);
  }

  .hero__content {
    padding: 0 0.25rem;
    display: flex;
    flex-direction: column;
  }

  .hero__title { order: 1; margin-bottom: 1rem; gap: 0.5rem; }
  .hero__lead { order: 2; }
  .hero__content .btn { order: 3; }
  .hero__quote {
    order: 4;
    font-size: 0.82rem;
    margin-top: 1.25rem;
    margin-bottom: 0;
    line-height: 1.45;
  }

  .hero__title-line {
    font-size: clamp(2rem, 9.5vw, 2.85rem);
  }

  .hero__title .brush.stroke-lg {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .hero__content .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .candidate-card--reverse .candidate-card__image,
  .candidate-card--reverse .candidate-card__body {
    order: initial;
  }

  .disclaimer__inner { flex-direction: column; align-items: flex-start; }
  .vote__inner { flex-direction: column; text-align: center; }
  .nav { display: none; }
  .burger { display: flex; }
}

@media (min-width: 1400px) {
  .hero__character img {
    height: min(calc(100vh - 3rem), 980px);
    right: max(-8vw, -120px);
  }
}

@media (max-width: 480px) {
  .hero .container.hero__grid {
    padding: 0 1rem;
  }

  .hero__character {
    margin: 0 -1rem;
    width: calc(100% + 2rem);
  }

  .hero__character img {
    width: 145vw;
    min-height: 260px;
  }

  .candidate-card { padding: 1.25rem; }
  .vote__inner { padding: 2rem 1.5rem; }
  .values-row { flex-direction: column; align-items: center; }
}
