:root {
    --sg-teal: #0b6e6e;
    --sg-aqua: #23b6a8;
    --sg-blue: #0b5cad;
    --sg-ink: #0a1f2e;
    --sg-mist: rgba(255, 255, 255, 0.86);
    --sg-soft: rgba(255, 255, 255, 0.12);
    --sg-glow: rgba(35, 182, 168, 0.45);
    --sg-font: "Outfit", "Segoe UI", sans-serif;
    --sg-display: "Fraunces", Georgia, serif;
}

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

html,
body {
    margin: 0;
    min-height: 100%;
}

body.site-gate {
    font-family: var(--sg-font);
    color: #fff;
    background: var(--sg-ink);
    overflow-x: hidden;
}

.sg-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    isolation: isolate;
}

.sg-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(120deg, rgba(10, 31, 46, 0.88) 0%, rgba(11, 110, 110, 0.72) 48%, rgba(11, 92, 173, 0.55) 100%),
        url("../assets/image/index/banner-1.jpg") center / cover no-repeat;
    transform: scale(1.04);
    animation: sg-kenburns 22s ease-in-out infinite alternate;
}

.sg-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(35, 182, 168, 0.28), transparent 34%),
        radial-gradient(circle at 82% 70%, rgba(11, 92, 173, 0.28), transparent 40%);
}

.sg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.55;
    z-index: -1;
    animation: sg-float 10s ease-in-out infinite;
}

.sg-orb--1 {
    width: 220px;
    height: 220px;
    left: -40px;
    top: 12%;
    background: radial-gradient(circle, var(--sg-glow), transparent 70%);
}

.sg-orb--2 {
    width: 280px;
    height: 280px;
    right: -60px;
    bottom: 8%;
    background: radial-gradient(circle, rgba(11, 92, 173, 0.5), transparent 70%);
    animation-delay: -3s;
}

.sg-orb--3 {
    width: 140px;
    height: 140px;
    left: 42%;
    top: 70%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
    animation-delay: -6s;
}

.sg-panel {
    width: min(1080px, 100%);
    margin: 0 auto;
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.75rem);
}

.sg-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    animation: sg-rise 0.8s ease both;
}

.sg-brand img {
    height: clamp(42px, 6vw, 58px);
    width: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.sg-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--sg-soft);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sg-mist);
}

.sg-pill::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--sg-aqua);
    box-shadow: 0 0 0 0 rgba(35, 182, 168, 0.7);
    animation: sg-pulse 1.8s infinite;
}

.sg-hero {
    display: grid;
    gap: 1.1rem;
    max-width: 720px;
    animation: sg-rise 1s ease both;
    animation-delay: 0.12s;
}

.sg-hero h1 {
    margin: 0;
    font-family: var(--sg-display);
    font-weight: 650;
    font-size: clamp(2.1rem, 5.4vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.sg-hero p {
    margin: 0;
    max-width: 54ch;
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.65;
    color: var(--sg-mist);
}

.sg-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 560px;
    animation: sg-rise 1.05s ease both;
    animation-delay: 0.22s;
}

.sg-count {
    position: relative;
    overflow: hidden;
    padding: 1rem 0.6rem;
    border-radius: 1rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.sg-count strong {
    display: block;
    font-size: clamp(1.55rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sg-count span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.sg-notify {
    display: grid;
    gap: 0.75rem;
    max-width: 560px;
    animation: sg-rise 1.1s ease both;
    animation-delay: 0.3s;
}

.sg-notify form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
}

.sg-notify input[type="email"] {
    width: 100%;
    min-height: 3.15rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sg-notify input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.sg-notify input[type="email"]:focus {
    border-color: var(--sg-aqua);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 4px rgba(35, 182, 168, 0.2);
}

.sg-notify button {
    min-height: 3.15rem;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font: inherit;
    font-weight: 650;
    color: #062a2a;
    cursor: pointer;
    background: linear-gradient(135deg, #7ef0e0 0%, var(--sg-aqua) 55%, #1f9fc7 100%);
    box-shadow: 0 12px 30px rgba(35, 182, 168, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.sg-notify button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 16px 36px rgba(35, 182, 168, 0.45);
}

.sg-notify button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.sg-msg {
    min-height: 1.25rem;
    font-size: 0.92rem;
    color: #b8fff3;
}

.sg-msg.is-error {
    color: #ffc9c9;
}

.sg-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    animation: sg-rise 1.15s ease both;
    animation-delay: 0.38s;
}

.sg-contacts a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    border-bottom: 1px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.sg-contacts a:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.5);
}

.sg-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    animation: sg-rise 1.2s ease both;
    animation-delay: 0.44s;
}

.sg-social a {
    width: 2.55rem;
    height: 2.55rem;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.2s ease, background 0.2s ease;
}

.sg-social a:hover {
    transform: translateY(-2px);
    background: rgba(35, 182, 168, 0.35);
}

.sg-foot {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    animation: sg-rise 1.25s ease both;
    animation-delay: 0.5s;
}

body.site-gate--maintenance .sg-bg {
    background:
        linear-gradient(135deg, rgba(8, 24, 36, 0.92) 0%, rgba(11, 110, 110, 0.78) 55%, rgba(8, 40, 70, 0.86) 100%),
        url("../assets/image/index/banner-2.jpg") center / cover no-repeat;
}

body.site-gate--maintenance .sg-pill::before {
    background: #ffc857;
    box-shadow: 0 0 0 0 rgba(255, 200, 87, 0.65);
}

@media (max-width: 720px) {
    .sg-countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sg-notify form {
        grid-template-columns: 1fr;
    }

    .sg-brand {
        flex-direction: column;
        align-items: flex-start;
    }
}

@keyframes sg-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sg-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

@keyframes sg-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(35, 182, 168, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(35, 182, 168, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(35, 182, 168, 0);
    }
}

@keyframes sg-kenburns {
    from {
        transform: scale(1.02) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.08) translate3d(-1.5%, -1%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sg-bg,
    .sg-orb,
    .sg-pill::before,
    .sg-brand,
    .sg-hero,
    .sg-countdown,
    .sg-notify,
    .sg-contacts,
    .sg-social,
    .sg-foot {
        animation: none !important;
    }
}
