:root {
  --sp-bg: #050816;
  --sp-bg-alt: #070b1f;
  --sp-accent: #4f46e5;
  --sp-accent-soft: rgba(79, 70, 229, 0.2);
  --sp-accent-strong: #f97316;
  --sp-text: #f9fafb;
  --sp-muted: #9ca3af;
  --sp-border: rgba(148, 163, 184, 0.25);
  --sp-radius-xl: 20px;
  --sp-radius-lg: 16px;
  --sp-radius-full: 999px;
  --sp-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
  --sp-shadow-hard: 0 28px 70px rgba(15, 23, 42, 0.9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);
  color: var(--sp-text);
}

a {
  color: inherit;
  text-decoration: none;
}

.sp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER */

.sp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15,23,42,0.96), rgba(15,23,42,0.85));
  border-bottom: 1px solid rgba(148,163,184,0.3);
}

.sp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.sp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-logo-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--sp-radius-full);
  background: radial-gradient(circle at 30% 20%, #22c55e, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.6);
}

.sp-logo-title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sp-logo-subtitle {
  font-size: 12px;
  color: var(--sp-muted);
}

.sp-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.sp-nav a {
  position: relative;
  color: var(--sp-muted);
  transition: color 0.25s ease;
}

.sp-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5, #f97316);
  transition: width 0.25s ease;
}

.sp-nav a:hover {
  color: #e5e7eb;
}

.sp-nav a:hover::after {
  width: 100%;
}

/* HERO */

.sp-hero {
  padding: 40px 0 20px;
}

.sp-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

.sp-hero-text h1 {
  font-size: clamp(32px, 5vw, 40px);
  margin: 0 0 10px;
}

.sp-hero-text p {
  margin: 0 0 20px;
  color: var(--sp-muted);
  font-size: 15px;
}

.sp-hero-actions {
  display: flex;
  gap: 12px;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--sp-radius-full);
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sp-btn-primary {
  background: linear-gradient(135deg, var(--sp-accent), #22c55e);
  box-shadow: var(--sp-shadow-soft);
}

.sp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--sp-shadow-hard);
}

.sp-btn-outline {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.7);
}

.sp-btn-outline:hover {
  border-color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
}

/* HERO CARD */

.sp-hero-card {
  border-radius: var(--sp-radius-xl);
  border: 1px solid rgba(148,163,184,0.4);
  background: radial-gradient(circle at top left, rgba(79,70,229,0.15), rgba(15,23,42,0.95));
  box-shadow: var(--sp-shadow-soft);
  padding: 18px 18px 20px;
}

.sp-hero-card h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.sp-hero-card p {
  margin: 0;
  font-size: 14px;
  color: var(--sp-muted);
}

/* SECTIONS */

.sp-section {
  padding: 26px 0;
}

.sp-section-alt {
  background: radial-gradient(circle at top, rgba(15,23,42,0.9), #020617 70%);
}

.sp-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.sp-section-header h2 {
  font-size: 20px;
  margin: 0;
}

.sp-section-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sp-muted);
  border-radius: var(--sp-radius-full);
  border: 1px solid rgba(148,163,184,0.5);
  padding: 3px 10px;
}

.sp-section-tag-accent {
  border-color: rgba(249,115,22,0.7);
  color: #fed7aa;
}

/* GRID & CARDS */

.sp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.sp-card {
  position: relative;
  border-radius: var(--sp-radius-lg);
  border: 1px solid var(--sp-border);
  background: radial-gradient(circle at top left, rgba(79,70,229,0.28), rgba(15,23,42,0.96));
  padding: 14px 14px 16px;
  box-shadow: var(--sp-shadow-soft);
}

.sp-card-accent {
  background: radial-gradient(circle at top left, rgba(249,115,22,0.33), rgba(15,23,42,0.96));
}

.sp-card-tag {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--sp-radius-full);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148,163,184,0.5);
  color: var(--sp-muted);
}

.sp-card-tag-accent {
  border-color: rgba(249,115,22,0.7);
  color: #fed7aa;
}

.sp-card h3 {
  font-size: 16px;
  margin: 8px 0 6px;
}

.sp-card-meta {
  font-size: 12px;
  color: var(--sp-muted);
  margin: 0 0 8px;
}

.sp-card-text {
  font-size: 14px;
  color: #e5e7eb;
  margin: 0;
}

/* MEMBERS */

.sp-grid-members {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.sp-member-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: var(--sp-radius-lg);
  border: 1px solid var(--sp-border);
  background: linear-gradient(145deg, rgba(15,23,42,0.95), rgba(15,23,42,0.85));
  padding: 12px 13px;
}

.sp-member-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--sp-radius-full);
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #22c55e, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-member-initials {
  font-weight: 700;
  font-size: 20px;
}

.sp-member-info h3 {
  font-size: 14px;
  margin: 0 0 4px;
}

.sp-member-role {
  font-size: 12px;
  color: var(--sp-muted);
  margin: 0 0 6px;
}

.sp-member-quote {
  font-size: 13px;
  color: #e5e7eb;
  margin: 0;
}

/* CONTACTS */

.sp-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border-radius: var(--sp-radius-xl);
  border: 1px solid var(--sp-border);
  background: radial-gradient(circle at top left, rgba(79,70,229,0.2), rgba(15,23,42,0.96));
  padding: 16px;
  box-shadow: var(--sp-shadow-soft);
}

.sp-contacts-main {
  flex: 1.3;
  min-width: 230px;
}

.sp-contacts-main h3 {
  margin: 0 0 10px;
}

.sp-contacts-main p {
  margin: 3px 0;
  font-size: 14px;
}

.sp-contacts-links {
  flex: 1;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-social-link {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--sp-radius-full);
  border: 1px solid rgba(148,163,184,0.5);
  text-align: center;
  background: rgba(15,23,42,0.85);
  transition: all 0.2s ease;
}

.sp-social-link:hover {
  border-color: #e5e7eb;
  transform: translateY(-1px);
}

/* FOOTER */

.sp-footer {
  border-top: 1px solid rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.98);
  margin-top: 20px;
}

.sp-footer-inner {
  padding: 12px 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--sp-muted);
}

.sp-footer-made {
  opacity: 0.9;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .sp-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sp-nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .sp-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .sp-hero-card {
    order: -1;
  }

  .sp-hero-actions {
    flex-wrap: wrap;
  }

  .sp-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
.sp-logo-img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.sp-card-text {
  overflow: hidden;
  transition: max-height 0.3s ease;
  line-height: 1.5;
  font-size: 14px;
  color: #e5e7eb;
}

.sp-card-text.collapsed {
  max-height: 130px; 
}

.toggle-btn {
  margin-top: 10px;
  background: none;
  border: 1px solid rgba(148,163,184,0.5);
  color: #9ca3af;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.toggle-btn:hover {
  border-color: rgba(255,255,255,0.7);
  color: #f9fafb;
}
.top-head {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.wrap-h{
    max-width: 1200px;
    margin:0 auto;
    padding:0 16px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo-side .logo-main{
    font-size:18px;
    font-weight:600;
}

.logo-side .logo-sub{
    font-size:12px;
    opacity:.7;
}

.burger-btn{
    width:34px;
    height:34px;
    border-radius:8px;
    border:1px solid rgba(255,255,255,.2);
    display:none;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:4px;
    cursor:pointer;
}

.burger-btn span{
    width:18px;
    height:2px;
    background:#fff;
    display:block;
    transition:.25s;
}

.top-nav{
    display:flex;
    gap:22px;
}

@media(max-width:780px){

    .top-nav{
        position:absolute;
        top:60px;
        right:16px;
        flex-direction:column;
        background:rgba(15,23,42,0.96);
        border:1px solid rgba(255,255,255,.13);
        padding:12px 16px;
        border-radius:12px;
        display:none;
    }

    .burger-btn{
        display:flex;
    }

    .top-nav.show{
        display:flex;
    }

    .sp-grid{
        display:block;
    }

    .sp-card{
        margin-bottom:16px;
    }

    .sp-member-card{
        margin-bottom:18px;
    }

    .sp-hero-text h1{
        font-size:26px;
        line-height:1.2;
    }

    .sp-hero-text p{
        font-size:14px;
    }

    .sp-section-header h2{
        font-size:20px;
    }
}
@media(max-width:780px){
    .sp-card-text{
        font-size:14px;
        line-height:1.45;
    }

    .toggle-btn{
        font-size:13px;
        padding:6px 10px;
    }

    .sp-member-info h3{
        font-size:15px;
    }
}
/* ДЕСКТОП — меню показываем */
.top-nav {
    display: flex;
    gap: 22px;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
}

/* underline для пунктов */
.top-nav a {
    position: relative;
    color: var(--sp-muted);
    transition: .25s;
}

.top-nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg,#4f46e5,#f97316);
    border-radius: 999px;
    transition: width .25s;
}

.top-nav a:hover {
    color: #e5e7eb;
}

.top-nav a:hover::after {
    width: 100%;
}

/* МОБИЛКА — показываем бургер */
@media(max-width:780px){
    .top-head {
        position: relative;
    }

    .top-nav {
        position: absolute;
        top: 60px;
        right: 16px;
        flex-direction: column;
        background: rgba(15,23,42,0.96);
        border: 1px solid rgba(255,255,255,.13);
        padding: 12px 16px;
        border-radius: 12px;
        display: none;
        gap: 14px;
    }

    .top-nav.show {
        display: flex;
    }
}
