/* =============================================
   ИСТОШИН В.М. — Кандидат в депутаты
   Production CSS · v2
   ============================================= */

:root {
  --red:        #B8212A;
  --red-dark:   #8A151B;
  --red-hover:  #D42A34;
  --navy:       #0D1F4E;
  --navy-mid:   #162B6A;
  --navy-light: #1D3580;
  --gold:       #C4922A;
  --gold-light: #E8C06A;
  --white:      #FFFFFF;
  --cream:      #F6F3EE;
  --stone:      #EDEBE5;
  --silver:     #C8C4BC;
  --muted:      #7A7568;
  --ink:        #1C1912;
  --text:       #2E2A22;
  --text-body:  #3D3830;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Montserrat', 'Segoe UI', Arial, sans-serif;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --duration:    0.32s;
  --radius:      4px;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:   0 6px 28px rgba(0,0,0,0.12);
  --shadow-lg:   0 16px 56px rgba(0,0,0,0.18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;   /* offset for fixed header */
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ---- CONTAINER ---- */
.container {
  width: 92%;
  max-width: 1180px;
  margin-inline: auto;
}

/* ---- SECTION LABELS & TITLES ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

.section-label.light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  box-shadow: 0 4px 18px rgba(184,33,42,0.38);
  border: 2px solid transparent;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(184,33,42,0.52);
  outline: none;
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.45);
  transition: border-color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
  outline: none;
}

.btn-large { padding: 1.15rem 2.8rem; font-size: 0.9rem; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(13, 31, 78, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(196, 146, 42, 0.22);
  height: 68px;
  transition: box-shadow var(--duration) var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: 5%;
  max-width: 1400px;
  margin-inline: auto;
}

.header-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  transition: opacity var(--duration) var(--ease);
}
.header-logo:hover { opacity: 0.85; }

.logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.logo-party {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-top: 0.22rem;
}

/* NAV */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.site-nav a {
  color: rgba(255,255,255,0.78);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  background: rgba(255,255,255,0.09);
  outline: none;
}

.site-nav .nav-cta {
  background: var(--red);
  color: var(--white) !important;
  margin-left: 1rem;
  box-shadow: 0 2px 10px rgba(184,33,42,0.45);
}

.site-nav .nav-cta:hover {
  background: var(--red-hover);
}

/* BURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

/* Russian flag subtle stripe on top */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--white) 33.33%, #0047AB 33.33% 66.66%, var(--red) 66.66%);
  z-index: 5;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 54%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(108deg, rgba(13,31,78,0.96) 0%, rgba(13,31,78,0.82) 38%, rgba(13,31,78,0.35) 62%, rgba(13,31,78,0.05) 80%),
    linear-gradient(to bottom, rgba(13,31,78,0.6) 0%, transparent 30%, transparent 70%, rgba(13,31,78,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 130px 5% 110px;
  max-width: 640px;
  animation: fadeUp 0.9s var(--ease) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.4rem;
  animation: fadeUp 0.9s 0.15s var(--ease) both;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.6rem;
  animation: fadeUp 0.9s 0.25s var(--ease) both;
}

.name-line { display: block; }
.name-accent { color: var(--gold-light); }

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-style: italic;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.1rem;
  animation: fadeUp 0.9s 0.35s var(--ease) both;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.68);
  text-transform: uppercase;
  margin-bottom: 2.4rem;
  animation: fadeUp 0.9s 0.45s var(--ease) both;
}

.hero-roles .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  margin-inline: 0.7rem;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp 0.9s 0.55s var(--ease) both;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  transition: color var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  animation: fadeUp 0.9s 0.8s var(--ease) both, scrollBounce 2.4s 1.5s ease-in-out infinite;
}

.hero-scroll:hover { color: var(--white); border-color: rgba(255,255,255,0.7); }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--red);
  display: flex;
  flex-wrap: wrap;
  justify-content: stretch;
}

.stat {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.16);
  text-align: center;
  transition: background var(--duration) var(--ease);
}

.stat:last-child { border-right: none; }
.stat:hover { background: rgba(0,0,0,0.12); }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.stat-num sup {
  font-size: 1.1rem;
  vertical-align: super;
  font-weight: 700;
}

.stat-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  margin-top: 0.45rem;
  line-height: 1.4;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 7rem 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.88;
  color: var(--text-body);
  margin-bottom: 1.4rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-roles {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.role-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--red);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.role-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.role-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--red);
  margin-top: 0.05rem;
}

.role-icon svg {
  width: 100%;
  height: 100%;
}

.role-text {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.role-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.role-text span {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects {
  padding: 7rem 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.projects::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,33,42,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.projects .section-label { color: var(--gold-light); }
.projects .section-label::before { background: var(--gold-light); }
.projects .section-title { color: var(--white); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.project-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(196,146,42,0.2);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.project-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(196,146,42,0.55);
  transform: translateY(-4px);
}

.project-tag {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.project-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

/* ============================================
   PROGRAM
   ============================================ */
.program {
  padding: 7rem 0;
  background: var(--white);
}

.program-list {
  border-top: 1px solid var(--stone);
}

.program-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--stone);
  transition: padding var(--duration) var(--ease),
              background var(--duration) var(--ease);
  border-radius: var(--radius);
}

.program-item:hover {
  background: var(--cream);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-inline: -1.5rem;
}

.program-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--stone);
  line-height: 1;
  user-select: none;
  transition: color var(--duration) var(--ease);
  padding-top: 0.15rem;
}

.program-item:hover .program-num { color: var(--red); }

.program-body h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.program-body p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ============================================
   QUOTES
   ============================================ */

/* ============================================
   QUOTES — v3 (clean, no conflicts)
   Шрифт Lora — читабельный серифный для цитат
   ============================================ */
.quotes {
  padding: 7rem 0 8rem;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.quotes::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 50%, var(--red) 100%);
}

/* --- Главная цитата --- */
.quote-featured {
  background: var(--navy);
  border-radius: 6px;
  margin: 0 0 1.6rem;
  padding: 0;
  border: none;
  box-shadow: 0 20px 60px rgba(13,31,78,0.28);
  overflow: hidden;
  position: relative;
}

.quote-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}

.quote-featured-inner {
  padding: 3.2rem 3.8rem 3rem;
  position: relative;
}

.quote-ornament {
  width: 52px;
  height: auto;
  color: var(--gold);
  opacity: 0.45;
  margin-bottom: 1.6rem;
  display: block;
}

.quote-featured-text {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.9;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.01em;
  max-width: 860px;
}

.quote-featured-author {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

.author-line {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.quote-featured-author cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* --- Дополнительные цитаты --- */
.quotes-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.quote-secondary {
  background: var(--white);
  border-radius: 6px;
  padding: 2.2rem 2.4rem 2rem;
  border: 1px solid rgba(184,33,42,0.1);
  border-top: 3px solid var(--red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  position: relative;
}

.quote-secondary:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.quote-secondary-mark {
  font-size: 3.2rem;
  line-height: 1;
  color: var(--red);
  opacity: 0.18;
  font-family: Georgia, serif;
  margin-bottom: 0.8rem;
  display: block;
  user-select: none;
}

.quote-secondary p {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text);
  letter-spacing: 0.005em;
}

.quote-secondary cite {
  display: block;
  margin-top: 1.3rem;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  font-family: var(--font-body);
}


/* ============================================
   GALLERY
   ============================================ */
.gallery {
  padding: 7rem 0 0;
  background: var(--white);
}

.gallery .container { margin-bottom: 2.5rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 310px 310px;
  gap: 4px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--stone);
}

.gallery-item--wide { grid-row: 1 / 3; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
  display: block;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 1.4rem 1.2rem;
  background: linear-gradient(transparent, rgba(13,31,78,0.88));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  transform: translateY(100%);
  transition: transform var(--duration) var(--ease);
}

.gallery-item:hover figcaption,
.gallery-item:focus-within figcaption { transform: translateY(0); }

/* ============================================
   CTA / SUPPORT
   ============================================ */
.cta-section {
  padding: 9rem 5%;
  text-align: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 15% 50%, rgba(184,33,42,0.14) 0%, transparent 65%),
    radial-gradient(ellipse 55% 70% at 85% 50%, rgba(196,146,42,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-inline: auto;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.28;
  margin: 1.2rem 0 1.3rem;
}

.cta-section p {
  font-size: 1rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.78;
  margin-bottom: 2.8rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  padding: 3.5rem 5% 2.5rem;
}

.footer-inner { max-width: 1180px; margin-inline: auto; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.footer-tagline {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--gold-light);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.1rem;
  align-items: center;
}

.footer-nav a {
  color: rgba(255,255,255,0.55);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.footer-nav a:hover { color: var(--white); background: rgba(255,255,255,0.07); }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 1.8rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.04em;
}

.footer-party {
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

/* ============================================
   RESPONSIVE — ПОЛНАЯ МОБИЛЬНАЯ ОПТИМИЗАЦИЯ
   ============================================ */

/* ── Планшет 960px ── */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(10,24,64,0.99);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.2rem 5%;
    gap: 0.3rem;
    border-bottom: 2px solid var(--gold);
    z-index: 800;
  }

  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; text-align: center; padding: 0.85rem; font-size: 0.85rem; }
  .site-nav .nav-cta { margin-left: 0; margin-top: 0.4rem; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .hero-photo { width: 70%; opacity: 0.55; }

  /* Цитаты на планшете */
  .quote-featured-inner { padding: 2.4rem 2.6rem 2.2rem; }
  .quotes-secondary { grid-template-columns: 1fr 1fr; }
}

/* ── Мобильный 720px ── */
@media (max-width: 720px) {
  html { scroll-padding-top: 68px; font-size: 15px; }

  /* Hero */
  .hero-photo { width: 100%; opacity: 0.28; }
  .hero-content { max-width: 100%; padding: 110px 5% 90px; }
  .hero-name { font-size: clamp(2.6rem, 10vw, 4rem); }
  .hero-tagline { font-size: 1rem; }
  .hero-roles { font-size: 0.72rem; }

  /* Stats */
  .stats-bar { flex-wrap: wrap; }
  .stat { min-width: 50%; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat:nth-child(2n) { border-right: none; }
  .stat-num { font-size: 2rem; }

  /* About */
  .about { padding: 4rem 0; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-text p { font-size: 0.97rem; }

  /* Projects */
  .projects { padding: 4rem 0; }
  .projects-grid { grid-template-columns: 1fr; }

  /* Program */
  .program { padding: 4rem 0; }
  .program-item { grid-template-columns: 52px 1fr; gap: 1.2rem; padding: 2rem 0; }
  .program-num { font-size: 2rem; }
  .program-body h3 { font-size: 1.12rem; }

  /* Quotes */
  .quotes { padding: 4rem 0 5rem; }
  .quote-featured-inner { padding: 2rem 1.6rem 1.8rem; }
  .quote-ornament { width: 36px; margin-bottom: 1.2rem; }
  .quote-featured-text { font-size: 1rem; line-height: 1.82; }
  .quote-featured-author { margin-top: 1.5rem; }
  .quotes-secondary { grid-template-columns: 1fr; gap: 1rem; }
  .quote-secondary { padding: 1.6rem 1.6rem 1.4rem; }
  .quote-secondary p { font-size: 0.95rem; }

  /* Gallery */
  .gallery { padding: 4rem 0 0; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 260px 200px 200px;
  }
  .gallery-item--wide { grid-row: auto; }
  .gallery-item figcaption { transform: translateY(0); }

  /* CTA */
  .cta-section { padding: 5rem 5%; }
  .cta-section h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }

  /* Footer */
  .footer-top { flex-direction: column; gap: 1.5rem; }
  .footer-nav { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.4rem; }

  /* Sections general */
  .section-title { font-size: clamp(1.65rem, 7vw, 2.4rem); margin-bottom: 2rem; }
}

/* ── Маленький мобильный 480px ── */
@media (max-width: 480px) {
  html { font-size: 14px; }

  /* Hero */
  .hero-content { padding: 100px 4% 80px; }
  .hero-name { font-size: clamp(2.4rem, 12vw, 3.2rem); line-height: 0.96; }
  .hero-actions { flex-direction: column; gap: 0.8rem; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { text-align: center; justify-content: center; width: 100%; }

  /* Stats — full width stack */
  .stat { min-width: 100%; border-right: none; }
  .stat:nth-child(2n) { border-right: none; }

  /* Buttons */
  .btn-primary, .btn-ghost { padding: 0.9rem 1.6rem; font-size: 0.78rem; }
  .btn-large { padding: 1rem 2rem; font-size: 0.82rem; }
  .cta-section .btn-primary { width: 100%; justify-content: center; }

  /* Quotes */
  .quote-featured-inner { padding: 1.6rem 1.2rem 1.4rem; }
  .quote-featured-text { font-size: 0.96rem; }
  .quote-secondary { padding: 1.4rem 1.2rem 1.2rem; }

  /* Role cards */
  .role-card { padding: 0.9rem 1rem; }
  .role-icon { width: 28px; height: 28px; }
  .role-text strong { font-size: 0.84rem; }

  /* Project cards */
  .project-card { padding: 1.4rem 1.2rem; }

  /* Program */
  .program-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .program-num { font-size: 1.6rem; color: var(--red); opacity: 0.5; }

  /* Gallery */
  .gallery-grid { grid-template-rows: 220px 180px 180px; }

  /* Header */
  .logo-name { font-size: 0.95rem; }
  .logo-party { font-size: 0.55rem; }

  /* Footer */
  .footer-name { font-size: 1.05rem; }
  .footer-nav a { font-size: 0.7rem; padding: 0.35rem 0.6rem; }
}

/* ── Очень маленький 360px ── */
@media (max-width: 360px) {
  .hero-name { font-size: 2.2rem; }
  .quote-featured-text { font-size: 0.92rem; }
  .section-title { font-size: 1.55rem; }
}


/* ============================================
   SHARE BLOCK — Поделиться в CTA
   ============================================ */
.share-block {
  margin-top: 3rem;
  padding-top: 2.6rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}

.share-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.4rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.22s var(--ease),
              box-shadow 0.22s var(--ease),
              background 0.22s var(--ease),
              border-color 0.22s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.share-btn:hover {
  transform: translateY(-3px);
}

.share-btn:active {
  transform: translateY(-1px);
}

.share-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ВКонтакте */
.share-btn--vk {
  background: #0077FF;
  color: #fff;
  box-shadow: 0 4px 18px rgba(0,119,255,0.35);
}
.share-btn--vk:hover {
  background: #0068e0;
  box-shadow: 0 8px 28px rgba(0,119,255,0.52);
}

/* Одноклассники */
/* Макс */
.share-btn--max {
  background: #5B4FCF;
  color: #fff;
  box-shadow: 0 4px 18px rgba(91,79,207,0.35);
}
.share-btn--max:hover {
  background: #4a3fb8;
  box-shadow: 0 8px 28px rgba(91,79,207,0.52);
}

/* Toast уведомление */
.share-toast {
  margin-top: 1.2rem;
  height: 1.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.share-toast.visible {
  opacity: 1;
}

/* ============================================
   SHARE — Футер
   ============================================ */
.footer-share {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-share-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.footer-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.5);
  transition: background 0.22s var(--ease),
              color 0.22s var(--ease),
              transform 0.22s var(--ease);
  text-decoration: none;
}

.footer-share-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-share-btn:hover {
  color: #fff;
  transform: translateY(-2px);
}

#footer-share-vk:hover  { background: #0077FF; }
#footer-share-ok:hover  { background: #EE8208; }
#footer-share-tg:hover  { background: #229ED9; }
#footer-share-wa:hover  { background: #25D366; }

/* Responsive share */
@media (max-width: 720px) {
  .share-buttons { gap: 0.7rem; }
  .share-btn { padding: 0.75rem 1.3rem; font-size: 0.76rem; }
  .share-icon { width: 18px; height: 18px; }
}

@media (max-width: 480px) {
  .share-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .share-btn {
    justify-content: center;
    padding: 0.9rem 1rem;
    border-radius: 8px;
  }
  .footer-share { gap: 0.6rem; }
  .footer-share-btn { width: 30px; height: 30px; }
  .footer-share-btn svg { width: 14px; height: 14px; }
}


/* ---- SHARE POPUP ---- */
.share-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.share-popup-overlay.active {
  display: flex;
  animation: overlayIn 0.25s ease;
}
@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.share-popup {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2.8rem 2.2rem;
  text-align: center;
  max-width: 320px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: popupIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popupIn {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.share-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1rem;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s;
}
.share-popup-close:hover { color: #333; }
.share-popup-icon {
  font-size: 3rem;
  margin-bottom: 0.6rem;
  line-height: 1;
}
.share-popup-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 0.4rem;
}
.share-popup-text {
  font-size: 1rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}
