:root {
    --sg-red: #e21f2d;
    --sg-red-dark: #b8121e;
    --sg-navy: #101827;
    --sg-navy-soft: #182233;
    --sg-black: #090d14;
    --sg-white: #ffffff;
    --sg-muted: #6b7280;
    --sg-border: #e5e7eb;
    --sg-bg: #f6f7fb;
    --sg-card: #ffffff;
    --sg-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --sg-radius: 18px;
    --sg-radius-sm: 12px;
    --sg-max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--sg-bg);
    color: var(--sg-navy);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.sg-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background:
        linear-gradient(
            90deg,
            rgba(9, 13, 20, 0.96),
            rgba(24, 34, 51, 0.92)
        );
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.sg-header__inner {
    min-height: 88px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.sg-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    color: var(--sg-white);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.sg-brand__logo {
    display: block;
    max-height: 54px;
    width: auto;
}

.sg-brand__fallback {
    display: none;
    align-items: center;
    gap: 10px;
}

.sg-brand__ball {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--sg-red);
    box-shadow: 0 10px 25px rgba(226, 31, 45, 0.35);
}

.sg-brand__text {
    display: inline-flex;
    flex-direction: column;
    font-size: 23px;
    line-height: 0.95;
}

.sg-brand__text span {
    color: var(--sg-red);
}

.sg-brand__text small {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sg-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

.sg-nav a {
    position: relative;
    color: var(--sg-white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.sg-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 0;
    height: 3px;
    background: var(--sg-red);
    transition: width 0.18s ease;
}

.sg-nav a:hover::after {
    width: 100%;
}

.sg-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sg-nav-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: var(--sg-white);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
}

.sg-btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.sg-btn:hover,
button:hover {
    transform: translateY(-1px);
}

.sg-btn--primary,
button {
    background: var(--sg-red);
    color: var(--sg-white);
    box-shadow: 0 12px 24px rgba(226, 31, 45, 0.26);
}

.sg-btn--primary:hover,
button:hover {
    background: var(--sg-red-dark);
}

.sg-btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    color: var(--sg-white);
}

.sg-btn--dark {
    background: var(--sg-navy);
    color: var(--sg-white);
}

.sg-btn--large {
    min-height: 56px;
    padding: 0 32px;
}

.sg-btn--full {
    width: 100%;
}

.sg-page-shell {
    width: min(var(--sg-max), calc(100% - 40px));
    margin: 42px auto 80px;
}

.sg-home-main {
    margin: 0;
}

.sg-messages {
    width: min(var(--sg-max), calc(100% - 40px));
    margin: 22px auto;
}

.sg-message {
    padding: 14px 18px;
    border-radius: var(--sg-radius-sm);
    background: var(--sg-white);
    box-shadow: var(--sg-shadow);
    font-weight: 700;
}

.sg-hero {
    min-height: 680px;
    color: var(--sg-white);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.sg-hero--home {
    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.74) 0%,
            rgba(0, 0, 0, 0.58) 34%,
            rgba(0, 0, 0, 0.16) 72%
        ),
        url("../img/hero-desktop.png");
}

.sg-hero__overlay {
    min-height: 680px;
    display: flex;
    align-items: center;
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 80px 56px 90px;
}

.sg-hero__content {
    width: min(620px, 100%);
}

.sg-kicker,
.sg-section-label {
    position: relative;
    margin: 0 0 18px;
    padding-left: 28px;
    color: var(--sg-red);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.03em;
}

.sg-kicker {
    color: var(--sg-white);
}

.sg-kicker::before,
.sg-section-label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--sg-red);
}

.sg-hero h1 {
    margin: 0;
    font-size: clamp(46px, 5.2vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    font-weight: 950;
}

.sg-hero h1 span {
    display: block;
    color: var(--sg-red);
}

.sg-hero__copy {
    width: min(560px, 100%);
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 18px;
    font-weight: 500;
}

.sg-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 34px;
}

.sg-feature-strip {
    margin-top: -1px;
    padding: 28px 44px;
    background: rgba(0, 0, 0, 0.88);
    color: var(--sg-white);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.sg-feature {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    align-items: start;
}

.sg-feature__icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--sg-red);
    font-size: 26px;
}

.sg-feature h3 {
    margin: 0 0 6px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 950;
}

.sg-feature p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.sg-section {
    width: min(var(--sg-max), calc(100% - 40px));
    margin: 0 auto;
    padding: 78px 0;
}

.sg-section--muted {
    background: transparent;
}

.sg-section__intro {
    max-width: 560px;
    margin-bottom: 34px;
}

.sg-section__intro h2,
.sg-page-hero h1,
.sg-cta h2 {
    margin: 0;
    color: var(--sg-navy);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.03;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.sg-section__intro p:not(.sg-section-label),
.sg-page-hero p,
.sg-cta p {
    color: var(--sg-muted);
    font-size: 17px;
}

.sg-card-grid,
.sg-content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.sg-content-grid {
    grid-template-columns: repeat(2, 1fr);
}

.card,
.sg-card,
.sg-auth-card {
    background: var(--sg-card);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    padding: 28px;
    box-shadow: var(--sg-shadow);
}

.sg-card h2,
.sg-card h3,
.card h2,
.card h3 {
    margin-top: 0;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.sg-card p,
.card p {
    color: var(--sg-muted);
}

.sg-card a:not(.sg-btn),
.card a:not(.sg-btn) {
    color: var(--sg-red);
    font-weight: 900;
    text-decoration: none;
}

.sg-card__icon {
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    display: grid;
    place-items: center;
    background: #fff5f6;
    color: var(--sg-red);
    border-radius: 999px;
    font-size: 26px;
}

.sg-card__meta {
    color: var(--sg-red) !important;
    font-weight: 900;
}

.sg-section__action {
    margin-top: 34px;
    text-align: center;
}

.sg-page-hero {
    max-width: 820px;
    margin-bottom: 38px;
}

.sg-page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.sg-cta {
    width: min(var(--sg-max), calc(100% - 40px));
    margin: 0 auto 84px;
    padding: 42px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #fff5f6
        );
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    box-shadow: var(--sg-shadow);
}

.sg-cta__actions {
    display: flex;
    gap: 14px;
}

.sg-auth-layout {
    width: min(var(--sg-max), calc(100% - 40px));
    margin: 54px auto 90px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 52px;
    align-items: center;
}

.sg-auth-copy h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.sg-auth-copy p:not(.sg-section-label) {
    color: var(--sg-muted);
    font-size: 18px;
}

.sg-auth-card form {
    display: grid;
    gap: 12px;
}

.sg-auth-note {
    margin-bottom: 0;
    color: var(--sg-muted);
}

.sg-auth-note a {
    color: var(--sg-red);
    font-weight: 900;
    text-decoration: none;
}

label {
    font-weight: 900;
    color: var(--sg-navy);
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--sg-border);
    border-radius: 10px;
    background: var(--sg-white);
    color: var(--sg-navy);
    font: inherit;
}

textarea {
    min-height: 120px;
}

.status-open {
    color: #138a36 !important;
    font-weight: 950;
}

.status-closed {
    color: var(--sg-red) !important;
    font-weight: 950;
}

.sg-coach-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--sg-radius-sm);
    margin-bottom: 18px;
}

.sg-coach-photo--placeholder {
    display: grid;
    place-items: center;
    background: #fff5f6;
    color: var(--sg-red);
    font-size: 54px;
}

.sg-footer {
    background: var(--sg-black);
    color: var(--sg-white);
    padding: 36px 0;
}

.sg-footer__inner {
    width: min(var(--sg-max), calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.sg-footer p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
}

.sg-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.sg-footer__links a {
    color: var(--sg-white);
    text-decoration: none;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .sg-header__inner {
        flex-wrap: wrap;
        padding: 18px 24px;
    }

    .sg-brand {
        flex: 1;
    }

    .sg-nav-toggle {
        display: inline-flex;
    }

    .sg-nav,
    .sg-header-actions {
        display: none;
        width: 100%;
    }

    .sg-nav-open .sg-nav,
    .sg-nav-open .sg-header-actions {
        display: flex;
    }

    .sg-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-top: 14px;
    }

    .sg-header-actions {
        padding-top: 16px;
    }

    .sg-feature-strip,
    .sg-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sg-auth-layout,
    .sg-cta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .sg-header__inner {
        min-height: 74px;
        padding: 14px 18px;
    }

    .sg-brand {
        min-width: 0;
    }

    .sg-brand__text {
        font-size: 18px;
    }

    .sg-brand__ball {
        width: 40px;
        height: 40px;
    }

    .sg-header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sg-header-actions .sg-btn {
        width: 100%;
    }

    .sg-hero,
    .sg-hero__overlay {
        min-height: 760px;
    }

    .sg-hero--home {
        background-image:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.62) 0%,
                rgba(0, 0, 0, 0.46) 44%,
                rgba(0, 0, 0, 0.80) 100%
            ),
            url("../img/hero-mobile.png");
        background-position: center center;
    }

    .sg-hero__overlay {
        align-items: flex-end;
        padding: 120px 22px 58px;
    }

    .sg-hero h1 {
        font-size: clamp(38px, 12vw, 58px);
    }

    .sg-hero__copy {
        font-size: 16px;
    }

    .sg-hero__actions {
        flex-direction: column;
    }

    .sg-hero__actions .sg-btn {
        width: 100%;
    }

    .sg-feature-strip,
    .sg-card-grid,
    .sg-content-grid {
        grid-template-columns: 1fr;
    }

    .sg-feature-strip {
        padding: 28px 22px;
    }

    .sg-section {
        width: min(100% - 32px, var(--sg-max));
        padding: 58px 0;
    }

    .sg-page-shell {
        width: min(100% - 32px, var(--sg-max));
        margin-top: 28px;
    }

    .sg-cta {
        width: min(100% - 32px, var(--sg-max));
        padding: 28px;
    }

    .sg-cta__actions {
        flex-direction: column;
    }

    .sg-auth-layout {
        width: min(100% - 32px, var(--sg-max));
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .sg-footer__inner {
        flex-direction: column;
    }
}
