/* ===========================
   Brand Variables
   =========================== */
:root {
    --font-base: "Inter", "Geneva", Arial, sans-serif;

    /* Medical brand palette */
    --color-primary: #2A6FDB;
    --color-primary-dark: #1F54A5;
    --color-accent: #4CC2C0;

    --color-bg: #F5F7FA;
    --color-sidebar-bg: #FFFFFF;
    --color-content-bg: #FFFFFF;

    --color-text: #2A2A2A;
    --color-text-light: #6F6F6F;

    --color-border: #E0E6ED;
    --color-footer-bg: #2F3A45;
    --color-footer-text: #CFCFCF;
}

/* ===========================
   Base
   =========================== */
body {
    margin: 0;
    font-family: var(--font-base);
    background: var(--color-bg);
    color: var(--color-text);
}

a {
    color: var(--color-primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ===========================
   Header
   =========================== */
.site-header {
    background: var(--color-primary);
    padding: 20px 0;
    color: #fff;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-height: 60px;
}

.header-banner {
    max-height: 60px;
    object-fit: cover;
}

/* ===========================
   Layout
   =========================== */
.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    padding: 30px;
}

/* ===========================
   Sidebar
   =========================== */
.sidebar {
    background: var(--color-sidebar-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar a {
    display: block;
    padding: 10px 0;
    font-weight: 600;
    color: var(--color-primary-dark);
}

/* ===========================
   Content
   =========================== */
.content {
    background: var(--color-content-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.page-title {
    margin-top: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.update-note {
    margin-top: 40px;
    font-size: 14px;
    color: var(--color-text-light);
}

/* ===========================
   Buttons
   =========================== */
.btn-primary {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.2s ease;
}
.btn-primary:hover {
    background: var(--color-primary-dark);
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

/* ===== 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;
}
