﻿:root {
    --bg-page: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f6f8fa;
    --line: #d8e0ea;
    --line-strong: #c6d1de;
    --text-main: #808080;
    --text-muted: #9b9b9b;
    --accent: #e7672e;
    --accent-hover: #cf5825;
    --accent-soft: #fff2eb;
    --button-bg: #ededed;
    --button-bg-hover: #e5e5e5;
    --button-text: #808080;
    --radius-lg: 0;
    --radius-md: 0;
    --shadow-soft: 0 2px 8px rgba(18, 30, 48, 0.08);
    --shadow-hover: 0 8px 20px rgba(18, 30, 48, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Open Sans", "Open Sans Fallback", "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-main);
    background: var(--bg-page);
}

.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    fill: currentColor;
    flex: 0 0 auto;
}

.background-shapes {
    display: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg-page);
    border-bottom: 1px solid rgba(128, 128, 128, 0.14);
    box-shadow: none;
}

.site-header__inner {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 12px clamp(14px, 3vw, 34px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}

.brand__logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 0;
    border: 0;
    background: transparent;
    padding: 0;
}

.top-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.top-socials a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    transition: color 0.2s ease;
}

.top-socials a .icon {
    color: currentColor;
    font-size: 12px;
    width: 12px;
    height: 12px;
    line-height: 1;
}

.top-socials a:hover,
.top-socials a:focus-visible {
    color: var(--accent-hover);
    text-decoration: none;
}

.top-socials__pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 8px 12px !important;
    background: var(--button-bg) !important;
    color: var(--button-text) !important;
    border: 0 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    line-height: 1;
}

.top-socials__pay:hover,
.top-socials__pay:focus-visible {
    background: var(--button-bg-hover) !important;
    color: var(--button-text) !important;
    text-decoration: none !important;
}

.layout {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 clamp(14px, 3vw, 34px) 52px;
    display: grid;
    gap: 14px;
}

.hero,
.card-block {
    background: var(--surface);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: clamp(320px, 56vw, 760px);
    padding: clamp(22px, 3.2vw, 40px) 0;
    overflow: hidden;
    background: #f5f7fa;
    isolation: isolate;
}

@supports (width: 100dvw) {
    .hero {
        width: 100dvw;
        margin-left: calc(50% - 50dvw);
        margin-right: calc(50% - 50dvw);
    }
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease;
    will-change: opacity, filter, transform;
    z-index: 0;
}

.hero__bg.is-active {
    opacity: 1;
    filter: blur(6px);
    transform: scale(1.08);
}

.hero__bg.is-hidden {
    opacity: 0;
    filter: blur(8px);
    transform: scale(1.1);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(42px);
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    width: 300px;
    height: 300px;
    left: 5%;
    top: -120px;
    background: rgba(231, 103, 46, 0.18);
}

.hero::after {
    width: 260px;
    height: 260px;
    right: 8%;
    bottom: -120px;
    background: rgba(128, 128, 128, 0.16);
}

.hero__inner {
    width: 100%;
    max-width: none;
    min-height: inherit;
    margin: 0 auto;
    padding: 0 clamp(10px, 2.5vw, 24px);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #f5f5f0;
    text-shadow: 0 0 6px rgba(245, 245, 240, 0.32);
}

.hero__hint {
    width: 100%;
    margin: 0 0 10px;
    color: #f5f5f0;
    font-weight: 700;
    font-size: clamp(18px, 4vw, 42px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero h1 {
    margin: 0 0 clamp(10px, 1.6vw, 20px);
    width: 100%;
    font-size: clamp(44px, 20vw, 320px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #f5f5f0;
}

.hero__text {
    margin: 12px 0 0;
    color: #f5f5f0;
    max-width: 740px;
    font-size: clamp(20px, 6vw, 56px);
}

.hero__placeholder {
    width: 100%;
    margin: clamp(16px, 1.9vw, 26px) 0 0;
    display: block;
    color: #f5f5f0;
}

.hero__placeholder-label {
    font-size: clamp(18px, 5vw, 44px);
    font-weight: 700;
}

.hero__placeholder-text {
    min-width: 0;
    padding: 0;
    display: block;
    width: 100%;
    font-size: clamp(24px, 8vw, 120px);
    line-height: 1;
    font-weight: 700;
    color: #f5f5f0;
    background: transparent;
    backdrop-filter: none;
    transition: opacity 0.24s ease, filter 0.24s ease;
}

.hero__placeholder-text.is-changing {
    opacity: 0.35;
    filter: blur(4px);
}

.card-block {
    padding: clamp(16px, 2.7vw, 24px);
}

.card-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.card-block__header h2 {
    margin: 0;
    font-size: clamp(21px, 3.5vw, 28px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #333333;
}

.card-block__header a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.card-block__header a:hover,
.card-block__header a:focus-visible {
    color: var(--accent-hover);
    text-decoration: underline;
}

.news-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(14px, 2vw, 22px);
    align-items: start;
}

.server-card {
    display: grid;
    grid-template-columns: minmax(260px, 410px) 1fr;
    gap: clamp(14px, 2vw, 22px);
    align-items: start;
}

.news-card__media {
    background: transparent;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
}

.news-card__body {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.server-card__media {
    background: transparent;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    height: auto;
}

.news-card__media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
}

.server-card__media img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    display: block;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
}

.meta {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.news-card h3,
.server-card h3 {
    margin: 8px 0 10px;
    font-size: clamp(20px, 3.5vw, 27px);
    line-height: 1.2;
}

.server-card h3 {
    color: #333333;
}

#newsText {
    margin: 0 0 14px;
    color: var(--text-muted);
    white-space: pre-line;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#newsLink {
    margin-top: auto;
}

.accent-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.accent-link:hover,
.accent-link:focus-visible {
    color: var(--accent-hover);
    text-decoration: underline;
}

.status-line {
    margin: 8px 0;
    font-size: 17px;
    color: var(--text-muted);
}

.status-line strong {
    color: var(--text-main);
}

.status-line--ip {
    margin-top: 4px;
}

.server-ip-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

.server-ip-link:hover,
.server-ip-link:focus-visible {
    color: var(--text-main);
    text-decoration: none;
}

.connect-button {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    border: 0;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.connect-button:hover,
.connect-button:focus-visible {
    background: var(--button-bg-hover);
    color: var(--button-text);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(128, 128, 128, 0.18);
}

.howto-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.howto-step {
    background: transparent;
    border-radius: 0;
    border: 0;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.howto-step__number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background:#ebebeb;
    color: #818181;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.howto-step__content {
    display: grid;
    gap: 10px;
}

.howto-step__content h3 {
    margin: 0;
    font-size: clamp(17px, 2.5vw, 22px);
    line-height: 1.25;
    color: #333333;
}

.howto-step__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 118px;
    padding: 9px 16px;
    border-radius: 4px;
    border: 0;
    background: #ec7149;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.howto-step__button:hover,
.howto-step__button:focus-visible {
    background: var(--button-bg-hover);
    color: var(--button-text);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(128, 128, 128, 0.18);
}

.howto-step__button--outline {
    background: var(--button-bg);
    color: var(--button-text);
    border: 0;
}

.howto-step__button--outline:hover,
.howto-step__button--outline:focus-visible {
    background: var(--button-bg-hover);
    color: var(--button-text);
    box-shadow: 0 8px 18px rgba(128, 128, 128, 0.18);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.media-item {
    background: transparent;
    border-radius: 14px;
    border: 0;
    box-shadow: none;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.media-item img,
.media-item__frame {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.media-item img {
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.social-item {
    text-decoration: none;
    color: var(--text-main);
    background: var(--surface-soft);
    border-radius: 4px;
    border: 0;
    padding: 14px;
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-item:hover,
.social-item:focus-visible {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-hover);
}

.social-item__name {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
}

.social-item__name .icon {
    color: var(--text-main);
    width: 16px;
    height: 16px;
    text-align: center;
    font-size: 14px;
}

.social-item__name .icon--forum {
    color: #4f6d8a;
}

.social-item__name .icon--telegram {
    color: #229ed9;
}

.social-item__name .icon--discord {
    color: #5865f2;
}

.social-item__name .icon--vk {
    color: #0077ff;
}

.social-item__url {
    font-size: 13px;
    color: var(--text-muted);
}

.site-footer {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 6px clamp(14px, 3vw, 34px) 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: #b5b5b5;
    opacity: 0.82;
}

.site-footer a {
    color: #adadad;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #989898;
    text-decoration: none;
}

@media (max-width: 960px) {
    .news-card,
    .server-card {
        grid-template-columns: 1fr;
    }

    .howto-steps {
        grid-template-columns: 1fr;
    }

    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer {
        font-size: 10px;
        gap: 6px;
        padding-bottom: 14px;
    }
}

@media (max-width: 640px) {
    .site-header__inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 10px;
    }

    .top-socials {
        margin-left: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        overflow: visible;
        width: auto;
        min-width: 0;
        max-width: none;
        padding-bottom: 0;
    }

    .top-socials a {
        flex: 0 0 auto;
        font-size: 12px;
        white-space: nowrap;
    }

    .top-socials a:not(.top-socials__pay) {
        display: none;
    }

    .top-socials__pay {
        margin-left: 0;
        padding: 7px 11px !important;
    }

    .card-block__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }
}
