:root {
    --hs-text: #333333;       /* Твой цвет текста */
    --hs-accent: #E7472A;     /* Твой новый акцентный цвет */
    --hs-accent-hover: #c9361a; /* Цвет при наведении */
    --hs-bg-gray: #f9f9f9;
    --hs-border: #e2e8f0;
    --hs-radius: 12px;
    --hs-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    --hs-shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.mgt-medium { margin-top: 40px; margin-bottom: 60px; }

/* БАЗА */
.hs-container { max-width: 1200px; padding: 0 20px; margin-left: auto; margin-right: auto; font-family: inherit; color: var(--hs-text); }
.hs-title { font-size: 36px; font-weight: 800; margin: 0; line-height: 1.2; color: var(--hs-text); }
.hs-body { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.hs-content-left { flex: 1 1 65%; min-width: 300px; }
.hs-content-right { flex: 1 1 30%; min-width: 300px; position: sticky; top: 20px; }

/* КНОПКИ */
.hs-btn { background: var(--hs-accent); color: #fff; border: none; padding: 14px 20px; border-radius: 8px; cursor: pointer; text-align: center; text-decoration: none; font-weight: 700; transition: all 0.2s ease; display: inline-block; }
.hs-btn:hover { background: var(--hs-accent-hover); color: #fff; transform: translateY(-2px); }
.hs-btn-outline { background: transparent; border: 2px solid var(--hs-text); color: var(--hs-text); padding: 12px 20px; border-radius: 8px; text-align: center; text-decoration: none; font-weight: 700; transition: all 0.2s ease; display: inline-block; }
.hs-btn-outline:hover { background: var(--hs-text); color: #fff; }

/* КАРТОЧКА В СЕТКЕ */
.hs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.hs-card { background: #fff; border: 1px solid var(--hs-border); border-radius: var(--hs-radius); overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s ease; box-shadow: var(--hs-shadow); }
.hs-card:hover { box-shadow: var(--hs-shadow-hover); transform: translateY(-4px); border-color: var(--hs-accent); }
.hs-card-image img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform 0.3s; }
.hs-card:hover .hs-card-image img { transform: scale(1.05); }
.hs-card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.hs-card-title { font-size: 22px; font-weight: 800; margin: 0 0 15px 0; }
.hs-card-title a { color: var(--hs-text); text-decoration: none; transition: color 0.2s; }
.hs-card-title a:hover { color: var(--hs-accent); }
.hs-card-price-small { font-size: 20px; color: var(--hs-text); margin-bottom: 15px; }

/* ПАРАМЕТРЫ */
.hs-params-list { margin-bottom: 20px; }
.hs-param-item { display: flex; justify-content: space-between; border-bottom: 1px dotted #ccc; padding-bottom: 6px; margin-bottom: 10px; font-size: 15px; }
.hs-param-item span:last-child { font-weight: 700; color: var(--hs-text); }

/* САЙДБАР ОДИНОЧНОЙ СТРАНИЦЫ */
.hs-sidebar-card { background: var(--hs-bg-gray); padding: 30px; border-radius: var(--hs-radius); border: 1px solid var(--hs-border); }
.hs-price-box { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--hs-border); }
.hs-price-label { font-size: 14px; text-transform: uppercase; font-weight: 700; color: #666; margin-bottom: 10px; }
.hs-price-value { font-size: 32px; font-weight: 900; color: var(--hs-text); margin-bottom: 20px; }

/* МЕССЕНДЖЕРЫ В САЙДБАРЕ */
.hs-messengers-box { margin-top: 20px; }
.hs-contact-title { font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 15px; color: var(--hs-text); }
.hs-contact-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; border-radius: 8px; margin-bottom: 10px; font-weight: 700; font-size: 15px; text-decoration: none; transition: 0.2s; color: #fff; }
.hs-contact-btn svg { width: 20px; height: 20px; }
.hs-phone-btn { background: var(--hs-text); }
.hs-phone-btn:hover { background: #000; }
.hs-tg-btn { background: #27A7E7; }
.hs-tg-btn:hover { background: #1b8ec9; }
.hs-wa-btn { background: #25D366; }
.hs-wa-btn:hover { background: #1da851; }

/* БЛОК "ВОЗМОЖНЫЕ ИЗМЕНЕНИЯ" */
.hs-custom-changes-block { background: #fff; border-left: 4px solid var(--hs-accent); padding: 25px 30px; margin: 40px 0; border-radius: 0 8px 8px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.hs-custom-changes-block h4 { margin: 0 0 15px 0; font-size: 18px; font-weight: 800; color: var(--hs-text); line-height: 1.4; }
.hs-custom-changes-block ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hs-custom-changes-block li { position: relative; padding-left: 25px; font-size: 15px; color: #444; }
.hs-custom-changes-block li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--hs-accent); font-weight: bold; }

/* ГАЛЕРЕИ */
.hs-section-title { font-size: 24px; font-weight: 800; margin: 40px 0 20px 0; border-bottom: 2px solid var(--hs-bg-gray); padding-bottom: 10px; }
.hs-project-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-bottom: 30px; }
.hs-gallery-item { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; border: 1px solid var(--hs-border); }
.hs-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.hs-gallery-item:hover img { transform: scale(1.05); opacity: 0.9; }

/* ЛАЙТБОКС */
.hs-lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0, 0.9); z-index: 999999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; }
.hs-lightbox-overlay.active { opacity: 1; visibility: visible; }
.hs-lightbox-overlay img { max-width: 90%; max-height: 90vh; object-fit: contain; transform: scale(0.95); transition: 0.3s; }
.hs-lightbox-overlay.active img { transform: scale(1); }
.hs-lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 40px; color: #fff; cursor: pointer; }

/* МОДАЛЬНОЕ ОКНО (ФОРМА) */
.hs-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0, 0.6); z-index: 999999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; backdrop-filter: blur(5px); transition: 0.3s; }
.hs-modal-overlay.hs-show { opacity: 1; visibility: visible; }
.hs-modal { background: #fff; padding: 40px; border-radius: var(--hs-radius); width: 100%; max-width: 400px; position: relative; text-align: center; }
.hs-modal h3 { margin: 0 0 10px 0; font-size: 24px; font-weight: 800; }
.hs-input-group { margin-bottom: 15px; }
.hs-input-group input { width: 100%; padding: 14px; border: 2px solid var(--hs-border); border-radius: 8px; font-size: 15px; background: var(--hs-bg-gray); outline: none; }
.hs-input-group input:focus { border-color: var(--hs-accent); background: #fff; }
.hs-close { position: absolute; top: 15px; right: 20px; font-size: 30px; cursor: pointer; color: #999; line-height: 1; }

/* ПАГИНАЦИЯ */
.hs-pagination { margin-top: 40px; text-align: center; }
.hs-pagination .page-numbers { display: inline-block; padding: 10px 16px; margin: 0 4px; border: 1px solid var(--hs-border); border-radius: 6px; color: var(--hs-text); text-decoration: none; font-weight: bold; background: #fff; }
.hs-pagination .page-numbers.current, .hs-pagination .page-numbers:hover { background: var(--hs-accent); color: #fff; border-color: var(--hs-accent); }

/* АДАПТИВ */
@media (max-width: 992px) {
    .hs-body { flex-direction: column; }
    .hs-content-right { width: 100%; position: static; }
    .hs-custom-changes-block ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hs-project-gallery { grid-template-columns: repeat(2, 1fr); }
    .hs-grid { grid-template-columns: 1fr; }
}

/* Оформление блока политики конфиденциальности */
.hs-privacy-check {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 15px 0 20px 0 !important;
    text-align: left !important;
}

.hs-privacy-check input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin-top: 2px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.hs-privacy-check label {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #555555 !important;
    cursor: pointer !important;
}

.hs-privacy-check label a {
    color: var(--hs-accent) !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    transition: color 0.2s !important;
}

.hs-privacy-check label a:hover {
    color: var(--hs-accent-hover) !important;
}