/* Sport Groups site theme */
:root {
  --bg: #0b1220;
  --surface: #111a2e;
  --surface-2: #0f1730;
  --text: #e6eef9;
  --muted: #9fb3c8;
  --primary: #00a3ff;
  --primary-600: #0088cc;
  --primary-700: #006da3;
  --accent: #6df1ff;
  --success: #3ddc97;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 1400px 800px at 20% 0%, rgba(0,163,255,.12), transparent 65%),
    radial-gradient(ellipse 1200px 700px at 80% 10%, rgba(109,241,255,.08), transparent 65%),
    radial-gradient(ellipse 1000px 600px at 50% 100%, rgba(102,126,234,.06), transparent 70%),
    linear-gradient(180deg, #0a111f 0%, #0b1220 50%, #0d1428 100%);
  background-attachment: fixed;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(8px);
  background: rgba(11,18,32,.6);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { filter: drop-shadow(0 2px 8px rgba(0,163,255,.4)); }
.brand-title { color: var(--text); font-weight: 700; letter-spacing: .2px; font-size: 1.2rem; }

.main-nav .nav-list { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; }
.main-nav a {
  color: var(--text); text-decoration: none; padding: 10px 14px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  transition: all .2s ease;
}
.main-nav a:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.hero {
  padding: 72px 0 56px;
  text-align: center;
  background:
    radial-gradient(ellipse 1400px 500px at 50% -10%, rgba(0,163,255,.16), transparent 75%),
    radial-gradient(ellipse 800px 400px at 30% 50%, rgba(109,241,255,.08), transparent 70%),
    radial-gradient(ellipse 800px 400px at 70% 50%, rgba(102,126,234,.06), transparent 70%);
  position: relative;
}
.hero h1 { font-size: clamp(2.2rem, 3.5vw, 3.2rem); margin: 0 0 12px; color: #fff; }
.hero p { max-width: 820px; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-block; padding: 12px 22px; border-radius: 12px;
  color: #081221; background: linear-gradient(180deg, var(--accent), #46d3e5);
  text-decoration: none; font-weight: 700; letter-spacing: .2px; box-shadow: 0 10px 25px rgba(70,211,229,.25);
  transition: all .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(70,211,229,.35); }
.button-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,163,255,.3);
}
.button-primary:hover {
  box-shadow: 0 12px 30px rgba(0,163,255,.4);
}

main { padding: 28px 0 64px; }
.content {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 28px;
  box-shadow: var(--shadow);
}

h1, h2, h3 { color: #eaf3ff; margin: 0 0 10px; }
h2 { margin-top: 28px; font-size: 1.6rem; }
h3 { margin-top: 20px; font-size: 1.25rem; }
p { color: var(--muted); margin: 0 0 14px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 18px 0 6px; }
.feature-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 18px; transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(0,0,0,.25); }
.feature-card h3 { color: var(--accent); margin-bottom: 6px; }

ul.feature-list { list-style: none; padding-left: 0; }
ul.feature-list li { position: relative; padding: 8px 0 8px 28px; color: var(--muted); }
ul.feature-list li::before { content: ''; position: absolute; left: 0; top: 12px; width: 16px; height: 16px;
  border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #b7eeff 30%, #46d3e5 60%);
  box-shadow: 0 0 0 3px rgba(70,211,229,.15);
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; text-align: center; margin: 12px 0 8px; }
.stat-card { padding: 16px; }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.stat-label { color: var(--muted); }

.site-footer { border-top: 1px solid rgba(255,255,255,.06); background: rgba(11,18,32,.6); }
.footer-inner { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 22px 0; }
.footer-brand { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); }
.footer-brand strong { color: var(--text); font-weight: 700; }
.footer-brand .footer-copy { margin-left: 10px; color: var(--muted); line-height: 1; }
.footer-col small { color: var(--muted); }

/* CMS editable placeholders visible */
.cms-toolbar-expanded .cms-placeholder { min-height: 100px; border: 2px dashed rgba(0,163,255,.5); border-radius: 12px; padding: 10px; }

/* Responsive tweaks */
@media (max-width: 720px) {
  .site-header {
    padding: 0 12px;
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .main-nav .nav-list {
    gap: 4px;
    flex-wrap: wrap;
  }

  .main-nav a {
    padding: 6px 8px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 8px;
  }

  .content { padding: 18px; }

  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; padding: 0 15px; }
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
    margin-top: 24px;
  }
  .button {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    white-space: normal;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
/* Footer styles */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px 0;
    margin-top: 80px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-brand img {
    align-self: flex-start;
}

.footer-brand strong {
    font-size: 18px;
    color: #fff;
}

.footer-copy {
    color: #95a5a6;
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

/* Cookie consent banner - красивый попап в правом нижнем углу */
#cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 420px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    padding: 24px;
    z-index: 9999;
    display: none;
    animation: slideInUp 0.4s ease-out;
}

#cookie-consent-banner.show {
    display: block;
}

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

.cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-consent-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cookie-consent-text p {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-consent-text p:first-child {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.cookie-consent-text a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid #667eea;
    transition: opacity 0.2s ease;
}

.cookie-consent-text a:hover {
    opacity: 0.8;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.cookie-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cookie-btn-decline {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

.cookie-btn-decline:hover {
    background: #e8e8e8;
}

.cookie-btn-settings {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

.cookie-btn-settings:hover {
    background: #f8f9fa;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 20px 20px 20px;
    }

    .footer-inner {
        flex-direction: column;
        padding: 0;
        align-items: flex-start;
    }

    .footer-col {
        width: 100%;
        min-width: 100%;
    }

    .footer-brand {
        align-items: flex-start;
    }

    .footer-links {
        align-items: flex-start;
        width: 100%;
    }

    .footer-links a {
        width: 100%;
    }

    #cookie-consent-banner {
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 20px;
    }

    .cookie-consent-text p {
        font-size: 13px;
    }

    .cookie-consent-text p:first-child {
        font-size: 15px;
    }

    .cookie-btn {
        width: 100%;
        padding: 14px 20px;
    }
}
