:root {
    --primary: #ffc11e;
    --dark-bg: #1c2530;
    --card-bg: #151c25;
}

/* Глобальный шрифт Montserrat Medium */
body,
h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.nav-link,
input,
textarea,
select {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    /* Medium */
}

header {
    background-color: var(--dark-bg);
    border-top: 4px solid var(--primary);
}

.navbar-brand {
    color: #fff !important;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-link {
    color: #b1cfde !important;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Центрирование Hero-блока и возврат высоты 100vh из оригинала */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../img/bg-hero.jpg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero h1 {
    font-weight: 700;
    font-size: 3rem;
    letter-spacing: 1px;
}

.btn-custom-primary {
    background-color: var(--primary);
    color: #000 !important;
    font-weight: 700;
    border: 2px solid var(--primary);
    border-radius: 0;
    padding: 12px 30px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-custom-primary:hover {
    background-color: rgb(230, 172, 10);
    border-color: rgb(230, 172, 10);
}

/* Исправлен цвет текста на желтый для контурной кнопки */
.btn-custom-outline {
    background-color: transparent;
    color: var(--primary) !important;
    font-weight: 700;
    border: 2px solid var(--primary);
    border-radius: 0;
    padding: 12px 30px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-custom-outline:hover {
    background-color: var(--primary);
    color: #000 !important;
}

.section-padding {
    padding: 80px 0;
}

.bg-dark-section {
    background-color: var(--dark-bg);
    color: #fff;
}

.yellow-line {
    border: none;
    height: 4px;
    background-color: var(--primary);
    opacity: 1;
    margin: 0;
}

.article-card {
    background-color: var(--card-bg);
    border-left: 3px solid var(--primary);
    padding: 20px;
    height: 100%;
}

/* Новые чистые стили для тарифов */
.tariff-item-block {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
}

.tariff-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.tariff-item-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #000000;
    margin: 0;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Тонкая серая линия-соединитель */
.tariff-item-line {
    flex-grow: 1;
    border-bottom: 1px solid #dee2e6;
    height: 1px;
    align-self: center;
}

.tariff-item-badge {
    background-color: var(--primary);
    color: #000000;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 3px;
    white-space: nowrap;
}

/* Описание мелким серым шрифтом */
.tariff-item-desc {
    font-size: 11px;
    color: #999999;
    line-height: 1.5;
    margin: 0;
}

.gallery-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #f4f6f7;
    font-size: 12px;
    color: #666;
}

/* Галерея благодарностей */
.gallery-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e1e5e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Модальный оверлей просмотра */
.custom-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

/* Картинка строго по центру в полный рост */
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: lightboxZoom 0.2s ease-out;
}

/* Крестик закрытия */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #ffffff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.15s ease;
    user-select: none;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--primary);
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Новый премиальный дизайн карточек контактов */
.contact-box-card {
    background: #ffffff;
    border: 1px solid #e1e5e8;
    border-radius: 6px;
    padding: 35px 25px;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-box-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Круглая стильная подложка под иконки */
.contact-icon-wrapper {
    color: #ffb700;
    /* Насыщенный золотой для контраста на белом */
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #fffdf0;
    border: 1px solid #fff3d1;
    border-radius: 50%;
}

.contact-card-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #111111;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.contact-card-value {
    font-size: 13px;
    font-weight: 600;
    color: #4f5d6c;
    margin: 0;
    line-height: 1.6;
}

.contact-card-value a {
    text-decoration: none;
    color: #111111;
    transition: color 0.15s ease;
}

.contact-card-value a:hover {
    color: var(--primary);
}

/* Анимация кнопки RuStore */
.rustore-btn {
    transition: transform 0.2s ease;
}

.rustore-btn:hover {
    transform: translateY(-3px);
}