/* ===========================
   Variables
   =========================== */
:root {
    --font-base: "Geneva", Arial, Helvetica, sans-serif;
    --color-bg: #6F6F6F;
    --color-header: #A98384;
    --color-menu-bg: #E4E6E7;
    --color-content-bg: #FFFFFF;
    --color-footer-bg: #5F5F5F;
    --color-footer-text: #CFCFCF;
    --color-link: #1B3491;
    --color-link-visited: #301366;
}

/* ===========================
   Base
   =========================== */
body {
    margin: 0;
    font-family: var(--font-base);
    background: var(--color-bg) url("../assets/background.gif") repeat;
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}

a {
    color: var(--color-link);
    text-decoration: none;
}
a:visited {
    color: var(--color-link-visited);
}
a:hover {
    text-decoration: underline;
}

/* ===========================
   Header
   =========================== */
.site-header {
    grid-column: 1 / -1;
    background: var(--color-header);
    border-bottom: 1px solid #000;
}

.header-inner {
    display: flex;
    max-width: 900px;
    margin: 0 auto;
}

.header-img {
    width: 50%;
    height: auto;
    display: block;
}

/* ===========================
   Sidebar
   =========================== */
.sidebar {
    background: var(--color-menu-bg);
    padding: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar a {
    display: block;
    padding: 6px 0;
    font-weight: bold;
    color: #355B90;
}

/* ===========================
   Content
   =========================== */
.content {
    background: var(--color-content-bg);
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    grid-column: 1 / -1;
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    text-align: center;
    padding: 10px;
    border-top: 1px solid #000;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
    }
    .sidebar {
        grid-row: 2;
    }
}

/* ===== Base Layer ===== */

.layer {
    font-family: "Open Sans", Helvetica, sans-serif;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);

    position: fixed;
    inset: 0;
    z-index: 999;

    background: linear-gradient(135deg, #fa794f 0%, #d03939 100%);
}

.layer a {
    font-weight: 700;
    color: #ffffff;
}

.layer a:hover {
    text-decoration: none;
}

.layer ul,
.layer li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ===== Box Layout ===== */

.box-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
}

.box {
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* ===== Description Block ===== */

.box-description {
    padding-top: 180px;
    background: url("layer-logo.png") no-repeat center top;
    background-size: 360px auto;
}

.box-title {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.4;
}

/* ===== List ===== */

.box-list {
    font-size: 18px;
    display: inline-block;
    margin-top: 10px;
}

.box-list li {
    margin: 8px 0;
    padding-left: 32px;
    background: url("layer-list.png") no-repeat left center;
    line-height: 24px;
    text-align: left;
}

/* ===== Buttons ===== */

.box-buttons {
    margin-top: 24px;
}

.box-button {
    display: inline-block;
    padding: 0 28px;
    height: 52px;
    line-height: 52px;

    background-color: #ffffff !important;

    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.12);

    font-size: 18px;
    font-weight: 700;
    color: #222222 !important;
    text-shadow: none !important;

    box-shadow: none;

    cursor: pointer; /* ← добавлено */

    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.box-button:hover {
    background-color: #f2f2f2 !important;
    border-color: rgba(0,0,0,0.18);
    color: #d03939 !important;
}

/* ===== Modal ===== */

.box-modal {
    width: 400px;
    padding: 24px 0;
    background: #ffffff;
    text-align: center;
    border-radius: 8px;
}

.box-modal-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 30px;
}

.box-modal-coupon {
    margin-top: 12px;
    font-size: 42px;
    font-weight: 600;
    color: #393939;
}

.box-modal-button {
    width: 280px;
    height: 48px;
    margin: 24px auto 0;

    display: block;
    background-color: #ff0000;

    font-size: 16px;
    font-weight: 600;
    color: #ffffff !important;
    line-height: 48px;
    text-align: center;
    text-decoration: none;

    border-radius: 6px;
    transition: background 0.2s ease;
}

.box-modal-button:hover {
    background-color: #cc0000;
}

.box-modal-button-no {
    background-color: #393939;
}

.box-text-dark {
    color: #393939;
}

