/*ПАЛИТРА*/
:root {
    --color-1: #E8F5FD;
    --color-2: #CCE1EF;
    --color-3: #9BC0DA;
    --color-4: #689EC2;
    --color-5: #0259DE;

    /* стекло */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px rgba(27, 91, 126, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0;
}

/*РАЗМЫТЫЙ ФОН ЧЕРЕЗ ПСЕВДОЭЛЕМЕНТ*/
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;

    background:
            linear-gradient(rgba(232, 245, 253, 0.2), rgba(204, 225, 239, 0.6)),
            url('https://ru-minecraft.ru/uploads/posts/2024-01/1705292444_day.jpg') no-repeat center center;
    background-size: cover;
    filter: blur(8px);
    transform: scale(1.05);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-5);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* -----------ПЛАВАЮЩАЯ ШАПКА */
.main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: 80%;
    max-width: 1000px;

    background: rgba(248, 250, 254, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition:
            top 0.8s cubic-bezier(0.25, 1, 0.5, 1),
            width 0.8s cubic-bezier(0.25, 1, 0.5, 1),
            max-width 0.8s cubic-bezier(0.25, 1, 0.5, 1),
            background-color 0.5s ease,
            padding 0.8s cubic-bezier(0.25, 1, 0.5, 1),
            box-shadow 0.8s ease;
}

.main-header.scrolled {
    top: 0;
    width: calc(100% - 40px);
    max-width: 1160px;
    background-color: rgba(248, 250, 254, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    transition: padding 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.main-header.scrolled .header-container {
    padding: 10px 40px;
}

/* логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    transition: height 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.main-header.scrolled .logo img {
    height: 32px;
}

.logo-text {
    font-weight: 900;
    font-size: 15px;
    color: var(--color-5);
    letter-spacing: -0.5px;
}

/* меню */
.main-header nav {
    display: flex;
    gap: 35px;
}

.main-header nav a {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    color: #a3c2f0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.main-header nav a:hover,
.main-header nav a.active {
    color: #0056d2;
}

/* -------КОНТЕЙНЕР */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
}

/* ---------- ГЕРОЙ */
.hero-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 60px;
    gap: 40px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    flex-shrink: 0;
    z-index: 1;
}

/* пузыри с анимацией */
.hero-bubble {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #0a2a50;
    min-width: 200px;
    text-align: center;
}

/* анимация первого пузыря */
.hero-bubble:nth-child(1) {
    animation: float-bubble1 5s ease-in-out infinite;
    margin-right: 20px;
}

/* анимация второго пузыря */
.hero-bubble:nth-child(2) {
    animation: float-bubble2 6s ease-in-out infinite;
}

@keyframes float-bubble1 {
    0% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0) rotate(-2deg); }
}

@keyframes float-bubble2 {
    0% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-12px) rotate(-1deg); }
    100% { transform: translateY(0) rotate(2deg); }
}

/* бейджи */
.hero-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.hero-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.hero-badge-outline {
    border: 1.5px solid var(--color-5);
    color: var(--color-5);
    background: rgba(255, 255, 255, 0.5);
}

.hero-badge-filled {
    background: var(--color-5);
    color: white;
    border: 1.5px solid transparent;
}

/* заголовок */
.hero-title {
    display: flex;
    flex-direction: column;
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 20px;
}

.hero-title-dark {
    color: #0a2a50;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.6);
}

.hero-title-accent {
    color: var(--color-5);
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.4);
}

/* описание */
.hero-desc {
    font-size: 15px;
    color: #1a3a5c;
    line-height: 1.65;
    max-width: 500px;
    margin-bottom: 32px;
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.8);
}

.hero-desc strong {
    color: var(--color-5);
}

/* кнопки */
.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-section {
    position: relative;
}

.hero-airplane {
    position: absolute;
    right: -150px;
    top: 80px;
    width: 480px;
    height: auto;
    z-index: 0;
    pointer-events: none;
    opacity: 0.90;
    filter: drop-shadow(0 20px 60px rgba(2, 89, 222, 0.15));
    animation: airplane-float 7s ease-in-out infinite;
}

@keyframes airplane-float {
    0%   { transform: translateY(0px) rotate(-1deg); }
    50%  { transform: translateY(-25px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(-1deg); }
}

@media (max-width: 768px) {
    .hero-airplane { display: none; }
}

.btn-primary {
    background-color: var(--color-5);
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(27, 91, 126, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-4);
    transform: translateY(-3px);
}

.btn-discord {
    background: #5865F2;
    color: white;
    border: none;
    padding: 18px 28px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-3px);
}

/* -------СЕТКА ДЛЯ КОНТЕНТА */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 40px;
}

.info-card {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.tags {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.tags span {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--color-5);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    border: 1px solid var(--color-3);
}

/* -----------КАРТОЧКИ ПОД КАРТИНКИ */
.img-card {
    min-height: 250px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--color-2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ffffff;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid var(--color-2);
    z-index: 2;
}

/* --------НОВОСТИ */
.news-section {
    margin-top: 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--color-5);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-left: 4px solid var(--color-4);
    padding: 25px;
    box-shadow: var(--glass-shadow);
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.news-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.news-date {
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--color-5);
}

/* ------------ПОДВАЛ */
.main-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: var(--glass-border);
    color: var(--color-5);
    padding: 40px 0;
    margin-top: 60px;
    box-shadow: 0 -2px 15px rgba(27, 91, 126, 0.1);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    color: var(--color-5);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 8px 16px;
    border: 1px solid var(--color-5);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.social-btn:hover {
    background-color: var(--color-5);
    color: #ffffff;
}

/* ---------- СТРАНИЦА СОГЛАШЕНИЙ */
.agreement-card {
    margin-top: 100px;
    margin-bottom: 20px;
}

.agreement-text {
    color: var(--color-5);
}

.agreement-text h2 {
    font-size: 1.5rem;
    margin-top: 35px;
    margin-bottom: 15px;
}

.agreement-text p {
    font-size: 1.05rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

.agreement-text ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.agreement-text li {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

/* -------- СТРАНИЦА ПОКУПКИ ПРОХОДКИ */
.guide-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.guide-step-title {
    font-size: 1.8rem;
    color: var(--color-5);
    margin-bottom: 20px;
}

.guide-image-wrapper {
    width: 100%;
    max-width: 800px;
    background-color: var(--color-2);
    padding: 10px;
    border: var(--glass-border);
    margin-bottom: 20px;
}

.guide-img {
    width: 100%;
    height: auto;
    display: block;
}

.guide-text {
    font-size: 1.1rem;
    color: var(--color-5);
    line-height: 1.6;
    max-width: 800px;
}

/* --------------- СТРАНИЦА ПОКУПКИ */
.purchase-header {
    margin-top: 130px;
    margin-bottom: 70px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.85);
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--glass-shadow);
}

.purchase-header .v4-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: var(--color-5);
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 14px;
}

.v4-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.v4-tag {
    border: 1.5px solid var(--color-5);
    color: var(--color-5);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.v4-tag.filled {
    background: var(--color-5);
    color: white;
    border-color: transparent;
}

.v4-deco {
    font-size: 80px;
    color: rgba(2, 89, 222, 0.07);
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}

@media (max-width: 768px) {
    .purchase-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
    }
    .v4-deco {
        display: none;
    }
}

@keyframes float-header1 {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

@keyframes float-header2 {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* контейнер таймлайна с вертикальной линией */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 100px auto;
    padding-left: 40px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-3), var(--color-5));
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(2, 89, 222, 0.4);
}

/* отдельный шаг */
.timeline-step {
    position: relative;
    margin-bottom: 50px;
}

/* последний шаг без нижнего отступа */
.timeline-step:last-child {
    margin-bottom: 0;
}

/* плавающая огромная цифра на заднем плане */
.step-number {
    position: absolute;
    left: -110px;
    top: -20px;
    font-size: 80px;
    font-weight: 900;
    color: rgba(2, 89, 222, 0.08);
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* светящаяся точка на линии таймлайна */
.timeline-step::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 25px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 4px solid var(--color-5);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px rgba(2, 89, 222, 0.6);
    transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-step:hover::before {
    transform: scale(1.3);
    background: var(--color-5);
}

/* контент шага */
.step-content {
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s ease;
}

.timeline-step:hover .step-content {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(27, 91, 126, 0.2);
}

.guide-step-title {
    font-size: 1.6rem;
    color: var(--color-5);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-text {
    font-size: 1.05rem;
    margin-bottom: 25px;
    color: #2b4560;
    line-height: 1.6;
}

/* обертка для картинок */
.guide-image-wrapper {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 10px;
    overflow: hidden;
    position: relative;
}

.guide-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* эффект зума картинки */
.timeline-step:hover .guide-img {
    transform: scale(1.02);
}

/* ------ БЕЙДЖИ ОПЛАТЫ */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.pay-badge {
    font-size: 0.85rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 6px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mono { background: linear-gradient(135deg, #000000, #333333); }
.funpay { background: linear-gradient(135deg, #007bff, #0056b3); }
.steam { background: linear-gradient(135deg, #171a21, #2a475e); }
.tg { background: linear-gradient(135deg, #2AABEE, #229ED9); }
.paypal { background: linear-gradient(135deg, #003087, #009cde); }

/* ---------- БЛОКИ ПРАВИЛ */
.rule-block {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.rule-block:last-child {
    border-bottom: none;
}

.rule-summary {
    padding: 15px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2b4560;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.rule-summary .dots {
    font-size: 1.2rem;
    color: #666;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.rule-summary:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #000;
}

.rule-summary:hover .dots {
    color: #000;
}

.rule-content-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.rule-block.open .rule-content-wrapper {
    grid-template-rows: 1fr;
}

.rule-block.open .dots {
    color: #1a4f8b;
    transform: translateY(-4px);
}

.rule-content {
    overflow: hidden;
    padding: 0 10px;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.4s ease, padding 0.4s ease;
}

.rule-block.open .rule-content {
    opacity: 1;
    padding: 10px 10px 25px 10px;
}

.rule-content p {
    margin-top: 0;
    margin-bottom: 15px;
}

.rule-content ul {
    margin-top: 10px;
    margin-bottom: 15px;
    padding-left: 20px;
}

/* -------МОДАЛЬНОЕ ОКНО */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border: 2px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    transform: scale(0.5);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-4);
}

/* кнопка сус */
#secretAdmin {
    cursor: default;
    user-select: none;
}

@media (max-width: 768px) {
    /* шапка */
    .main-header {
        width: 90%;
    }
    .header-container {
        padding: 12px 15px;
    }
    .main-header.scrolled .header-container {
        padding: 10px 15px;
    }
    .main-header nav {
        gap: 15px;
        flex-wrap: wrap;
    }
    .main-header nav a {
        font-size: 0.8rem;
    }
    .logo-text {
        display: none;
    }

    /* герой */
    .hero-section {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 100px;
        padding-bottom: 40px;
        gap: 24px;
        min-height: auto;
    }
    .hero-right {
        display: none;
    }
    .hero-title {
        letter-spacing: -1.5px;
    }
    .hero-btns {
        flex-direction: column;
    }
    .btn-primary,
    .btn-discord {
        width: 100%;
        text-align: center;
    }

    /* сетка контента */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .info-card {
        grid-column: span 1;
        padding: 25px;
    }
    .card {
        padding: 25px;
    }
    .tags {
        flex-wrap: wrap;
    }

    /* новости */
    .news-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 1.7rem;
    }

    /* подвал */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* соглашения */
    .agreement-card {
        margin-top: 120px;
        padding: 20px;
    }
    .agreement-text h2 {
        font-size: 1.3rem;
    }
    .agreement-text p,
    .agreement-text li {
        font-size: 0.95rem;
    }

    /* покупка */
    .guide-step-title {
        font-size: 1.5rem;
    }
    .guide-text {
        font-size: 1rem;
    }

    /* модалка */
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 45px;
    }
}

@media (max-width: 768px) {
    .timeline-container {
        padding-left: 20px;
    }
    .timeline-container::before {
        left: 0;
    }
    .timeline-step::before {
        left: -26px;
        width: 12px;
        height: 12px;
    }
    .step-number {
        font-size: 50px;
        left: -30px;
        top: -15px;
    }
    .guide-step-title {
        font-size: 1.3rem;
    }
}
