/* Universal Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    background-color: #ffffff;
    color: #334155;
    line-height: 1.65;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 400;
    font-size: 16px;
    font-size: 1rem;
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

a {
    text-decoration: none;
    color: #046bd2;
}

a:hover {
    color: #045cb4;
    text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

h1 { font-size: 2.25rem; line-height: 1.4; }
h2 { font-size: 1.875rem; line-height: 1.3; }
h3 { font-size: 1.5rem; line-height: 1.3; }
h4 { font-size: 1.25rem; line-height: 1.2; }
h5 { font-size: 1.125rem; line-height: 1.2; }
h6 { font-size: 1rem; line-height: 1.25; }

/* -------------------
   Header Styling
   ------------------- */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background-color: #ffffff;
    padding: 12px 5%;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.logo-area {
    flex: 0 0 auto;
}

.logo-area .brand-img {
    height: 45px;
    width: auto;
    display: block;
    object-fit: contain;
}

.center-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex: 1 1 auto;
    gap: 20px;
}

.nav-primary,
.nav-secondary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.center-menu a {
    color: #334155;
    font-weight: 600;
    font-size: 0.9375rem;
}

.center-menu a:hover {
    color: #045cb4;
    text-decoration: none;
}

/* Hamburger Toggle - hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    flex: 0 0 auto;
    box-sizing: border-box;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: #334155;
    border-radius: 2px;
}

.nav-toggle:hover span {
    background-color: #045cb4;
}

.header-auth {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

.btn-red-header {
    background-color: #d32f2f;
    color: #ffffff !important;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.btn-red-header:hover {
    background-color: #b71c1c;
    text-decoration: none;
    color: #ffffff !important;
}

/* -------------------
   Main Container
   ------------------- */
.container {
    display: block;
    max-width: 1200px;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 30px;
    text-align: left;
}

/* Intro Panel - H1 + welcome text */
.intro-panel {
    background-color: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 30px 36px;
    margin-bottom: 34px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.intro-panel .page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #16181d;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.5px;
    line-height: 1.35;
}

.intro-panel p {
    font-size: 1.0625rem;
    color: #334155;
    line-height: 1.75;
    text-align: left;
    margin: 0;
}

.center-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0 auto 40px;
}

/* Center Buttons */
.btn {
    display: inline-block;
    min-width: 200px;
    margin: 10px;
    padding: 16px 40px;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    text-decoration: none;
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.1);
}

.btn-red {
    background-color: #d32f2f;
    border-color: #d32f2f;
}

.btn-red:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
}

.btn-blue {
    background-color: #046bd2;
    border-color: #046bd2;
}

.btn-blue:hover {
    background-color: #045cb4;
    border-color: #045cb4;
}

.btn-amber {
    background-color: #fcb900;
    border-color: #fcb900;
    color: #1e293b !important;
}

.btn-amber:hover {
    background-color: #e6a600;
    border-color: #e6a600;
    color: #1e293b !important;
}

.btn-telegram {
    background: linear-gradient(90deg, #007bff, #8a2be2);
    border-color: transparent;
    font-style: italic;
    margin-top: 25px;
}

/* Giftcode & Links */
.giftcode-box {
    margin: 30px auto;
    font-size: 1rem;
    color: #334155;
    background: #ffffff;
    border: none;
    border-radius: 0;
    padding: 10px 0;
    max-width: 100%;
    width: 100%;
    text-align: center;
    box-shadow: none;
}

.giftcode-title {
    font-size: 2rem;
    font-weight: 800;
    color: #16181d;
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: -0.5px;
}

.giftcode-subtitle {
    font-size: 1.0625rem;
    font-weight: 400;
    font-style: italic;
    color: #4b5563;
    margin-bottom: 22px;
    text-transform: none;
    letter-spacing: normal;
}

.giftcode-value {
    display: block;
    width: 100%;
    background-color: #f7f7f8;
    color: #16181d;
    font-family: "Courier New", Courier, monospace;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 16px 22px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    word-break: break-all;
    margin-bottom: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.giftcode-updated {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.giftcode-link {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #046bd2;
    text-decoration: underline;
}

.giftcode-link:hover {
    color: #045cb4;
}

/* Inline CTA buttons inside article */
.btn-inline {
    text-align: center;
    margin: 24px 0;
}

.btn-inline .btn {
    min-width: 220px;
}

.text-link-box {
    margin: 15px 0;
}

.blue-link {
    font-weight: 600;
    text-decoration: underline;
    text-transform: uppercase;
}

/* Table Design */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 1rem;
}

.info-table td {
    border: 1px solid #d1d5db;
    padding: 12px 16px;
    vertical-align: middle;
}

.info-table td:first-child {
    width: 30%;
    color: #1e293b;
    font-weight: 600;
    background-color: #f0f5fa;
}

/* Article Content */
.article-content {
    max-width: 100%;
    overflow-wrap: break-word;
}

.article-content p {
    font-size: 1rem;
    color: #334155;
    margin-bottom: 24px;
    line-height: 1.7;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 32px 0 16px;
    color: #1e293b;
}

.article-content ul,
.article-content ol {
    margin-left: 24px;
    margin-bottom: 24px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 12px;
    color: #334155;
    line-height: 1.7;
}

.article-content strong {
    font-weight: 700;
    color: #1e293b;
}

.article-content blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    border-left: 4px solid #046bd2;
    background-color: #f0f5fa;
    border-radius: 0 4px 4px 0;
}

.article-content blockquote p {
    font-style: italic;
    color: #334155;
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.7;
    color: #334155;
}

.faq-section strong {
    font-weight: 700;
    color: #1e293b;
}

.faq-section p {
    margin-bottom: 16px;
}

.faq-section h2:first-child {
    margin-top: 0;
}

/* Poster Images - always centered */
.article-content .poster-image,
.poster-image {
    display: block;
    box-sizing: border-box;
    width: auto;
    max-width: min(335px, 100%);
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
    border-radius: 4px;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.08);
}

.poster-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 24px;
}

.poster-wrap .poster-image {
    margin-bottom: 0;
}

/* Footer */
.bottom-footer {
    background-color: #f0f5fa;
    border-top: 1px solid #d1d5db;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.bottom-footer p {
    color: #334155;
    margin-bottom: 10px;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 16px;
}

.footer-links a {
    color: #046bd2;
    font-size: 0.875rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: #045cb4;
}

/* ====================================================
   MOBILE RESPONSIVE DESIGN
   ==================================================== */
@media (max-width: 921px) {
    html {
        font-size: 91.2%;
    }

    .top-header {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }

    .logo-area .brand-img {
        height: 38px;
    }

    .center-menu {
        width: 100%;
        gap: 10px;
        justify-content: space-between;
    }

    .nav-primary {
        gap: 14px;
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    .center-menu a {
        font-size: 0.8125rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-secondary {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        border-top: 1px solid #e5e7eb;
        margin-top: 2px;
    }

    .nav-secondary a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 13px 10px;
        font-size: 0.9375rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .center-menu.nav-open .nav-secondary {
        display: flex;
    }

    .header-auth {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .btn-red-header {
        padding: 10px 24px;
        font-size: 0.875rem;
        width: 48%;
        text-align: center;
    }

    .container {
        margin-top: 24px;
        margin-bottom: 24px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-title {
        font-size: 1.75rem;
        text-align: center;
        margin-bottom: 24px;
    }

    .intro-panel {
        padding: 22px 18px;
        margin-bottom: 24px;
    }

    .intro-panel .page-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .intro-panel p {
        font-size: 0.9375rem;
        text-align: left;
    }

    .btn {
        min-width: auto;
        width: 100%;
        max-width: 300px;
        padding: 14px 28px;
        font-size: 0.9375rem;
    }

    .btn-telegram {
        margin-top: 15px;
    }

    .info-table td {
        padding: 10px 12px;
        font-size: 0.875rem;
    }

    .article-content p {
        font-size: 0.9375rem;
    }

    .bottom-footer {
        padding: 25px 15px;
        margin-top: 40px;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-links a {
        font-size: 0.8125rem;
    }
}

@media (max-width: 544px) {
    html {
        font-size: 91.2%;
    }

    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5625rem; }
    h3 { font-size: 1.25rem; }

    .btn {
        padding: 12px 24px;
        font-size: 0.875rem;
    }

    .info-table td {
        padding: 8px 10px;
        font-size: 0.8125rem;
    }

    .info-table td:first-child {
        width: 38%;
    }

    .article-content p {
        font-size: 0.875rem;
    }

    .poster-image {
        max-width: 100%;
    }

    .giftcode-title {
        font-size: 1.5rem;
    }

    .giftcode-subtitle {
        font-size: 1rem;
    }

    .giftcode-value {
        font-size: 0.9375rem;
        padding: 14px 12px;
        letter-spacing: 0;
    }
}
