:root {
    --color-primary: #06558E;
    --color-accent: #0D52C5;
    --color-dark: #333;
    --color-light: #fff;
    --color-gray: #f5f5f5;

    --font-main: Arial, Helvetica, sans-serif;
    --font-title: "Times New Roman", serif;

    --radius: 6px;
}

body.page {
    margin: 0;
    background: #e5e5e5;
    font-family: var(--font-main);
    color: var(--color-dark);
}

/* Layout */
.container {
    width: min(1200px, 95%);
    margin: 0 auto;
}

/* Header */
.header {
    background: var(--color-light);
    border-bottom: 1px solid #ddd;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Navigation */
.nav {
    background: var(--color-primary);
}

.nav__list {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    list-style: none;
}

.nav__link {
    color: var(--color-light);
    text-decoration: none;
    font-weight: bold;
}

.nav__link:hover {
    color: #DDE0E6;
}

/* Main layout */
.main {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 25px;
    margin-top: 25px;
}

/* Sidebar */
.sidebar {
    background: var(--color-primary);
    color: var(--color-light);
    padding: 20px;
    border-radius: var(--radius);
}

.sidebar__title {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.sidebar__list a {
    color: var(--color-light);
    text-decoration: none;
}

.sidebar__list a:hover {
    text-decoration: underline;
}

/* Content */
.content__title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.card {
    background: var(--color-light);
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid #ddd;
}

.card__img {
    max-width: 100%;
}

.card__title {
    font-weight: bold;
    margin: 10px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: bold;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-light);
}

.btn--primary:hover {
    background: #04385D;
}

.btn--light {
    background: var(--color-light);
    color: var(--color-primary);
}

.btn--dark {
    background: #333;
    color: var(--color-light);
}

/* Footer */
.footer {
    margin-top: 40px;
    background: #f0f0f0;
    padding: 20px 0;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer__bottom {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 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("../img/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("../img/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;
}
