/* ___ ГЛАВНАЯ СТРАНИЦА ___ */
.hero {
  position: relative;
  background: #12101f;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  overflow: hidden;
}

[data-theme="light"] .hero {
  background: #1a1a1a;
}

.hero-logo-wrap {
  position: absolute;
  left: 40%;
  bottom: 4%;
  transform: translateX(calc(-50% - 22vw));
  z-index: 1;
  width: min(36vw, 420px);
  height: min(36vw, 420px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0.92;
}

.hero-logo {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.2));
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-title {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin-bottom: 1.25rem;
  color: #fff;
}

.hero-slogan {
  font-family: var(--font-xp);
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero .platform-box {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
}

.hero .platform-box:hover {
  background: #fff;
  color: #1a0a40;
  border-color: #fff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.hero-contact-btn {
  display: inline-block;
  margin: 0 auto;
  font-family: var(--font-xp);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  padding: 0.85rem 2rem;
  border: 2px solid #ffd56a;
  background: #ffd56a;
  color: #1a0a40;
  cursor: pointer;
  transition: var(--transition);
}

.hero-contact-btn:hover {
  background: #fff;
  border-color: #fff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

/* === WELCOME PITCH === */
.welcome-pitch {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 4.5rem 1.5rem 7rem;
  background: #12101f;
  color: #fff;
  overflow: hidden;
  text-align: center;
}

[data-theme="light"] .welcome-pitch {
  background: #1a1a1a;
}

.welcome-pitch-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.welcome-kicker {
  font-family: var(--font-xp);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  margin: 0 0 1rem;
  color: #ffd56a;
  opacity: 0.95;
}

.welcome-title {
  font-family: var(--font-xp);
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin: 0 0 1.35rem;
  color: #fff;
  font-weight: 400;
}

.welcome-text {
  margin: 0 auto 2.25rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36em;
}

.welcome-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  max-width: 900px;
  margin: 0 auto;
}

.welcome-shots img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 26px;
  background: rgba(0, 0, 0, 0.25);
}

.welcome-pitch-fade {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(42%, 220px);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    color-mix(in srgb, var(--bg) 35%, transparent) 45%,
    var(--bg) 100%
  );
  z-index: 2;
}

/* === SECTIONS COMMON (index) === */
section.projects,
section.team,
section.announcements {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.section-title {
  font-family: var(--font-xp);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 6px;
  background: var(--accent);
  position: relative;
}

/* === PROJECTS === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 6px 6px 0 var(--accent);
}

.project-card.expanded {
  grid-column: 1 / -1;
  cursor: default;
}

.project-card.expanded:hover {
  transform: none;
  box-shadow: none;
}

.project-preview {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}

.project-thumb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  background: #111;
}

.project-card.expanded .project-thumb {
  display: none;
}

.project-title {
  font-family: var(--font-xp);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-full {
  display: none;
  padding: 0;
}

.project-card.expanded .project-preview {
  display: none;
}

.project-card.expanded .project-full {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
}

.project-image {
  aspect-ratio: 16 / 10;
  background: #111;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.project-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-desc {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
}

.btn-view {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background: var(--btn-green);
  color: #000;
  font-family: var(--font-xp);
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
}

.btn-view:hover {
  background: #fff;
  box-shadow: 4px 4px 0 #000;
}

.close-project {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: 2px solid var(--text);
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  place-items: center;
}

.project-card.expanded .close-project {
  display: grid;
}

/* === TEAM === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
  background: #111;
  transition: var(--transition);
}

.team-member:hover .team-avatar {
  box-shadow: 0 0 0 6px var(--accent);
  transform: scale(1.05);
}

.team-info {
  width: 100%;
  background: var(--card-bg);
  border: 2px solid var(--border);
  padding: 1.25rem 1rem;
  position: relative;
}

.team-info::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.team-name {
  font-family: var(--font-xp);
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.team-handle {
  font-family: var(--font-xp);
  font-size: 0.9rem;
  color: var(--glitch);
  margin-bottom: 0.35rem;
  letter-spacing: 0.03em;
}

.team-role {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.team-projects {
  font-size: 0.8rem;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.btn-contact {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--text);
  font-family: var(--font-xp);
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
  color: var(--text);
}

.btn-contact:hover,
.btn-contact.active {
  background: var(--accent);
  box-shadow: 3px 3px 0 var(--text);
}

.team-socials {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.team-member.expanded .team-socials {
  display: flex;
}

.team-socials a {
  font-family: var(--font-xp);
  font-size: 0.95rem;
  color: var(--glitch);
  padding: 0.35rem 0.6rem;
  border: 1px solid transparent;
  transition: var(--transition);
}

.team-socials a:hover {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.25);
}

/* === ANNOUNCEMENTS === */
.announcements-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 820px;
  margin: 0 auto;
}

.announcements-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 220px;
}

.announcement-slide {
  display: none;
  background: var(--card-bg);
  border: 2px solid var(--border);
  padding: 1.5rem;
  animation: fadeIn 0.35s ease;
}

.announcement-slide.active {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.announcement-media {
  flex-shrink: 0;
  width: 110px;
}

.announcement-media img {
  width: 100%;
  height: auto;
  border: 2px solid var(--accent);
  object-fit: cover;
  aspect-ratio: 1;
}

.announcement-content {
  flex: 1;
  min-width: 0;
}

.announcement-date {
  font-family: var(--font-xp);
  font-size: 0.95rem;
  color: var(--accent-2);
  margin-bottom: 0.6rem;
  letter-spacing: 0.06em;
}

.announcement-title {
  font-family: var(--font-xp);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.announcement-text {
  color: var(--text-dim);
  line-height: 1.55;
  font-size: 0.98rem;
}

.announcement-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.1rem;
  background: var(--btn-green);
  color: #000;
  font-family: var(--font-xp);
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.04em;
}

.announcement-btn:hover {
  background: #fff;
  box-shadow: 3px 3px 0 #000;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border: 2px solid var(--text);
  background: var(--card-bg);
  color: var(--text);
  font-family: var(--font-xp);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.slider-btn:hover {
  background: var(--accent);
  box-shadow: 3px 3px 0 var(--text);
}

.announcements-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--text);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* === TERMINAL (если есть на index) === */
.terminal-window {
  max-width: 720px;
  margin: 0 auto;
  border: 3px solid #333;
  background: #0a0f0a;
  box-shadow: 0 0 0 1px #00ff9d33, 8px 8px 0 var(--accent);
  font-family: var(--font-xp);
}

.terminal-header {
  background: linear-gradient(90deg, #1a3a1a, #0d200d);
  border-bottom: 1px solid #00ff9d55;
  padding: 0.45rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.terminal-buttons {
  display: flex;
  gap: 6px;
}

.term-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.term-btn.close {
  background: #ff5f56;
}

.term-btn.minimize {
  background: #ffbd2e;
}

.term-btn.maximize {
  background: #27c93f;
}

.terminal-title {
  font-family: var(--font-xp);
  font-size: 1rem;
  color: #00ff9d;
  text-shadow: 0 0 6px #00ff9d;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1.5rem 1.75rem 1.75rem;
  color: #00ff9d;
  text-shadow: 0 0 4px #00ff9d66;
  position: relative;
  font-size: 1.15rem;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  color: #00ff9d;
}

.form-row select,
.form-row textarea,
.form-row input {
  width: 100%;
  background: #051005;
  border: 1px solid #00ff9d44;
  color: #00ff9d;
  caret-color: #00ff9d;
  font-family: var(--font-xp);
  font-size: 1.15rem;
  padding: 0.6rem 0.8rem;
  outline: none;
}

.form-row select:focus,
.form-row textarea:focus,
.form-row input:focus {
  border-color: #00ff9d;
  box-shadow: 0 0 0 1px #00ff9d55, 0 0 12px #00ff9d22;
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 0.9rem;
  background: #00ff9d;
  color: #000;
  border: 2px solid #00ff9d;
  font-family: var(--font-xp);
  font-size: 1.15rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: var(--transition);
}

.submit-btn:hover {
  background: transparent;
  color: #00ff9d;
  box-shadow: 0 0 15px #00ff9d66;
}

/* === CASSETTE === */
.cassette-player {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 90;
  width: 280px;
  transition: width 0.25s ease;
}

.cass-toggle {
  position: absolute;
  top: -16px;
  right: 6px;
  width: 30px;
  height: 30px;
  border: 2px solid var(--text);
  background: var(--card-bg);
  color: var(--text);
  font-family: var(--font-xp);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 5;
  transition: var(--transition);
}

.cass-toggle:hover {
  background: var(--accent);
}

.cassette-body {
  background: #1a1a1a;
  border: 3px solid var(--text);
  padding: 0.9rem 1rem;
  box-shadow: 5px 5px 0 var(--accent);
  position: relative;
  font-family: var(--font-xp);
}

.cassette-body::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 12px;
  right: 12px;
  height: 4px;
  background: repeating-linear-gradient(90deg, #333 0 6px, transparent 6px 10px);
  opacity: 0.6;
}

.cassette-top {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.cassette-cover {
  width: 52px;
  height: 52px;
  border: 2px solid #444;
  object-fit: cover;
  flex-shrink: 0;
  background: #111;
}

.cassette-volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.vol-icon {
  font-size: 0.9rem;
  color: #888;
}

#volume-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #333;
  outline: none;
  cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--btn-green);
  border: 2px solid #000;
  cursor: pointer;
}

#volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--btn-green);
  border: 2px solid #000;
  cursor: pointer;
}

.cassette-label {
  flex: 1;
  min-width: 0;
  background: #111;
  border: 1px solid #444;
  padding: 0.45rem 0.6rem;
}

.track-title {
  font-size: 1.05rem;
  color: var(--glitch);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cassette-controls {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.cass-btn {
  width: 36px;
  height: 36px;
  border: 2px solid var(--text);
  background: #222;
  color: var(--text);
  font-family: var(--font-xp);
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.cass-btn:hover {
  background: var(--accent);
}

.cass-btn.play {
  width: 44px;
  background: var(--btn-green);
  color: #000;
  border-color: var(--btn-green);
}

.cass-link {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  border-top: 1px solid #333;
  padding-top: 0.5rem;
}

.cass-link:hover {
  color: var(--text);
}

.cassette-player.collapsed {
  width: 48px;
}

.cassette-player.collapsed .cassette-body {
  display: none !important;
}

.cassette-player.collapsed .cass-toggle {
  position: static;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
}

/* === MAIN RESPONSIVE === */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card.expanded .project-full {
    grid-template-columns: 1fr;
  }

  .hero-logo-wrap {
    transform: translateX(calc(-50% - 18vw));
    width: min(40vw, 300px);
    height: min(40vw, 300px);
    opacity: 0.8;
  }
}

@media (max-width: 700px) {
  .welcome-shots {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .welcome-pitch {
    padding-bottom: 5.5rem;
  }

  .announcements-slider {
    gap: 0.5rem;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .project-thumb {
    width: 64px;
    height: 64px;
  }

  .hero-logo-wrap {
    width: min(55vw, 220px);
    height: min(55vw, 220px);
    opacity: 0.7;
  }

  .hero-contact-btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo-wrap {
    left: 50%;
    bottom: 1.5%;
    transform: translateX(-50%);
    width: min(48vw, 200px);
    height: min(48vw, 200px);
    opacity: 0.5;
  }

  .hero-title {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .section-line {
    width: 100%;
  }

  .cassette-player {
    left: 0.75rem;
    bottom: 0.75rem;
    width: 240px;
  }

  .announcement-slide.active {
    flex-direction: column;
  }

  .announcement-media {
    width: 80px;
  }
}