:root {
    --bg-gradient: linear-gradient(145deg, #0d0b14 0%, #16121d 100%);
    --card-bg: rgba(255, 255, 255, 0.65);
    --blur: blur(18px);
    --text-main: #e0dce6;
    /*--text-main: #4a4a4a;*/
    --accent: #ff8acb;
    --accent-soft: #ffd6ec;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --card-border: 1px solid rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
}

/* HEADER */

.header {
    backdrop-filter: var(--blur);
    background: rgba(255,255,255,0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-radius: 0 0 30px 30px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
}

.logo {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-link {
    background: var(--card-bg);
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--accent-soft);
    transform: translateY(-2px);
}

/* MAIN */

.main-content {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}


/* HERO */

.hero-banner img {
    width: 100%;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

/* STATUS BAR */

.status-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.status-pill {
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    font-weight: 500;
}

/* CONNECT */

.connect {
    text-align: center;
}

.ip-address-copy {
    display: flex;
    justify-content: center;
    margin: 20px auto;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    max-width: 400px;
    box-shadow: var(--shadow);
}

#server-ip {
    font-weight: bold;
    flex-grow: 1;
}

.ip-address-copy button {
    background: var(--accent);
    border: none;
    color: white;
    padding: 15px 25px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.ip-address-copy button:hover {
    opacity: 0.9;
}

/* FEATURES */

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* FOOTER */

.footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    color: #777;
}

/* ===== ТЕМНАЯ ТЕМА ===== */


.wrapper {
    max-width: 1300px;
    width: 100%;
}

/* ----- НАВИГАЦИЯ (темное стекло) ----- */
.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 25, 45, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.7rem 1.8rem;
    border-radius: 60px;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
    border: var(--card-border);
    margin-bottom: 2.5rem;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(2px 4px 12px rgba(255, 20, 147, 0.3));
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    font-weight: 500;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #a59fb3;
    font-size: 1.1rem;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.nav-links a:hover {
    border-bottom-color: #FF1493;
    color: #ffffff;
}

.online-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.3rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.5);
    border: var(--card-border);
    color: #ffffff;
    white-space: nowrap;
}

.online-badge i {
    color: #00ff9d;
    margin-right: 8px;
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #FF1493;
    user-select: none;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(20, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 1.5rem;
    margin-top: 0.5rem;
    border: var(--card-border);
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.8);
}

.mobile-menu a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.3rem;
    padding: 0.8rem 1rem;
    border-radius: 30px;
    transition: background 0.2s;
}

.mobile-menu a:hover {
    background: rgba(255, 20, 147, 0.1);
}

/* ----- СТЕКЛЯННЫЕ КАРТОЧКИ ----- */
.glass-card {
    background: rgba(40, 35, 55, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 42px;
    padding: 1.8rem 2.2rem;
    border: var(--card-border);
    box-shadow: 0 25px 40px -20px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
}

.welcome-section {
    background: linear-gradient(125deg, #1f1a29, #151825);
    border-radius: 42px;
    padding: 2rem;
    margin: 2rem 0 3rem 0;
    box-shadow: 0 25px 35px -15px rgba(0, 0, 0, 0.6);
    border: var(--card-border);
}

.welcome-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.welcome-title span:first-child {
    color: #FF1493;
    text-shadow: 0 0 15px rgba(255, 20, 147, 0.4);
}

.welcome-title span:last-child {
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.welcome-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #b8b0c5;
    max-width: 900px;
}

/* ----- IP-БЛОК ----- */
.ip-section {
    background: linear-gradient(125deg, #1f1a29, #151825);
    border-radius: 42px;
    padding: 2rem;
    margin: 2rem 0 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 25px 35px -15px rgba(0, 0, 0, 0.6);
    border: var(--card-border);
}

.ip-address-block {
    background: #000000;
    color: #FF1493;
    padding: 1.2rem;
    border-radius: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1px solid #3d142b;
    text-align: center;
}

.ip-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
}

.ip-actions .btn {
    width: 100%;
    justify-content: center;
}

.btn {
    border: none;
    background: #2a2535;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 20px -14px rgba(0, 0, 0, 0.5);
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background: #FF1493;
}

.btn-primary:hover {
    transform: translateY(-4px);
    background: #ff2d9f;
}

.btn-secondary:hover {
    background: #362f45;
    transform: translateY(-3px);
}

.server-status-text {
    margin-top: 1rem;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 40px;
    padding: 0.6rem 1.8rem;
    display: inline-block;
    backdrop-filter: blur(4px);
    color: #a59fb3;
}

/* ----- ВИДЕО И ЗАГОЛОВОК ----- */
.steps-section {
    text-align: center;
    margin: 3rem 0;
}

.main-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 360px;
    margin: 0 auto 50px;
}

.expandable-wrapper {
    position: relative;
    width: 100%;
    height: 4em;
    overflow: hidden;
    transition: height 0.4s ease;
}

.video-container {
    position: relative;
    width: 100%;
    /* 360 / 640 = 0.5625 (16:9) */
    padding-bottom: 56.25%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 640px;
    max-height: 360px;
}

/* Эффект блюра и затемнения */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 640px;
    max-height: 360px;
    background: linear-gradient(to bottom, transparent 1em, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    transition: opacity 0.3s;
}

.expanded .overlay {
    opacity: 0;
}

.expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 0;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    transition: transform 0.3s ease;
    color: var(--accent);
}

/* Drawing the Chevron */
.arrow-icon {
    width: 12px;
    height: 12px;
    border-right: 3px solid #fff; /* Arrow color */
    border-bottom: 3px solid #fff;
    transform: rotate(45deg); /* Points down */
    transition: transform 0.4s ease;
}

/* Rotate arrow when expanded */
.expanded + .expand-btn .arrow-icon {
    transform: rotate(-135deg) translateY(-3px); /* Points up */
}

.expand-btn:hover .arrow-icon {
    border-color: var(--accent); /* Darkens on hover */
}


.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: #ffffff;
    cursor: pointer;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2535;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #FF1493;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

#videoBlock {
    margin-bottom: 40px;
}

#videoBlock video {
    border-radius: 30px;
    box-shadow: 0 20px 30px -10px black;
    border: var(--card-border);
    max-height: 480px;
    width: 100%;
    object-fit: contain;
    background: #000;
}

.card {
    background: rgba(30, 25, 45, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 30px;
    padding: 2rem 1.2rem;
    border: var(--card-border);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.6);
    transition: all 0.25s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(255, 20, 147, 0.1);
    border-color: rgba(255, 20, 147, 0.3);
    box-shadow: 0 25px 35px -12px #ff149333;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.card p {
    font-size: 1rem;
    line-height: 1.5;
    color: #b8b0c5;
    margin-bottom: 1rem;
}

.card .link {
    color: #FF1493;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #FF1493;
    transition: 0.2s;
}

.card .link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.card strong {
    color: #FF1493;
    background: rgba(255, 20, 147, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    font-size: 0.95rem;
}

.card-header {
    text-align: center;
    padding: 2rem;
}

/* ----- НОВЫЙ ДИЗАЙН ШАГОВ (КАРТОЧКИ) ----- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.step-number {
    display: inline-block;
    width: 44px;
    height: 44px;
    background: #FF1493;
    color: white;
    border-radius: 50%;
    line-height: 44px;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px #ff1493;
}

.step-icon {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    color: #ff8cc6;
}

/* ----- ОСОБЕННОСТИ ----- */
.features-section {
    text-align: center;
    margin: 3rem 0;
}

.features-title {
    font-size: 2.4rem;
    margin: 3rem 0 2rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer {
    margin-top: 4rem;
    text-align: center;
    color: #5b5466;
    border-top: 2px dashed #2a2535;
    padding-top: 2rem;
    font-size: 1.1rem;
}

.copy-btn {
    background: #FF1493;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    margin-left: 1rem;
}

@media (max-width: 1000px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (min-width: 781px) {
    .ip-section {
        flex-direction: row;
        justify-content: space-between;
        padding: 2rem 3rem;
        border-radius: 60px;
    }

    .ip-address-block {
        flex-direction: row;
        width: auto;
        padding: 0.8rem 2rem;
    }

    .ip-actions {
        flex-direction: row;
        width: auto;
    }

    .ip-actions .btn {
        width: auto;
    }
}

@media (max-width: 780px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: inline-block;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .welcome-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {

    .header {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        justify-content: center;
    }

    section {
        padding: 25px;
    }
}

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

@media (max-width: 480px) {
    .welcome-title {
        font-size: 2.2rem;
    }

    .ip-address-block span {
        font-size: 1.2rem;
    }
}