.magnum-lots {
    --magnum-bg: #343242;
    --magnum-panel: rgba(42, 39, 53, .94);
    --magnum-panel-deep: rgba(31, 29, 41, .94);
    --magnum-line: rgba(255, 255, 255, .16);
    --magnum-muted: rgba(255, 255, 255, .62);
    --magnum-accent: #d98232;
    --magnum-accent-dark: #b96824;
    width: 100%;
    margin: 0;
    padding: 62px 0 72px;
    color: #fff;
    font: 400 18px/1.45 Circe, Arial, sans-serif;
}

.magnum-lots *,
.magnum-lots *::before,
.magnum-lots *::after,
.magnum-lot-modal *,
.magnum-lot-modal *::before,
.magnum-lot-modal *::after {
    box-sizing: border-box;
}

.magnum-lots button,
.magnum-lots input,
.magnum-lots select,
.magnum-lot-modal button,
.magnum-lot-modal input {
    font-family: Circe, Arial, sans-serif;
}

.magnum-lots__inner {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.magnum-lots__title {
    position: relative;
    margin: 0 0 30px;
    padding: 0 0 17px;
    color: #fff;
    font-size: clamp(34px, 3.2vw, 48px);
    font-weight: 700;
    line-height: 1.08;
}

.magnum-lots__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 76px;
    height: 4px;
    background: var(--magnum-accent);
}

.magnum-lots__filters {
    display: grid;
    grid-template-columns: minmax(160px, .65fr) minmax(210px, .72fr) minmax(280px, 1.2fr) minmax(260px, 1fr) auto;
    align-items: end;
    gap: 20px;
    padding: 22px 24px;
    border: 1px solid var(--magnum-line);
    background: var(--magnum-panel-deep);
    box-shadow: 0 18px 44px rgba(13, 12, 18, .2);
}

.magnum-lots__filter {
    min-width: 0;
}

.magnum-lots__label {
    display: block;
    margin: 0 0 12px;
    color: var(--magnum-muted);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.magnum-lots__filter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.magnum-lots__price-modes,
.magnum-lots__floor-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.magnum-lots__price-modes {
    margin-top: 0;
}

.magnum-lots__price-modes button,
.magnum-lots__floor-buttons button {
    min-width: 44px;
    height: 44px;
    padding: 0 15px;
    border: 1px solid var(--magnum-line);
    border-radius: 0;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    transition: border-color .18s ease, background .18s ease;
}

.magnum-lots__price-modes button:hover,
.magnum-lots__floor-buttons button:hover,
.magnum-lots__price-modes button.is-active,
.magnum-lots__floor-buttons button.is-active {
    border-color: var(--magnum-accent);
    background: var(--magnum-accent);
}

.magnum-lots__range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.magnum-lots__range-inputs > span {
    color: var(--magnum-muted);
}

.magnum-lots__range-inputs label {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 46px;
    flex: 1 1 0;
    gap: 8px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid var(--magnum-line);
    color: var(--magnum-muted);
    font-size: 15px;
}

.magnum-lots__range-inputs input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    appearance: textfield;
}

.magnum-lots__range-inputs input::placeholder {
    color: rgba(255, 255, 255, .42);
    opacity: 1;
}

.magnum-lots__range-inputs input::-webkit-inner-spin-button {
    appearance: none;
}

.magnum-lots__reset {
    height: 46px;
    padding: 0 20px;
    border: 1px solid rgba(217, 130, 50, .72);
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .18s ease;
}

.magnum-lots__reset:hover {
    background: rgba(217, 130, 50, .12);
}

.magnum-lots__reset span {
    margin-right: 6px;
    color: var(--magnum-accent);
    font-size: 24px;
    vertical-align: -2px;
}

.magnum-lots__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 28px 0 16px;
    color: var(--magnum-muted);
    font-size: 17px;
}

.magnum-lots__toolbar strong {
    color: #fff;
    font-size: 20px;
}

.magnum-lots__toolbar select {
    height: 46px;
    min-width: 250px;
    padding: 0 40px 0 15px;
    border: 1px solid var(--magnum-line);
    border-radius: 0;
    outline: 0;
    background-color: var(--magnum-panel-deep);
    color: #fff;
    font-size: 17px;
}

.magnum-lots__list {
    display: grid;
    gap: 12px;
}

.magnum-lot {
    display: grid;
    grid-template-columns: 160px minmax(280px, 1fr) minmax(280px, .75fr) 195px;
    min-height: 158px;
    overflow: hidden;
    border: 1px solid var(--magnum-line);
    background: var(--magnum-panel);
    box-shadow: 0 16px 38px rgba(13, 12, 18, .15);
    transition: border-color .18s ease, transform .18s ease;
}

.magnum-lot:hover {
    border-color: rgba(217, 130, 50, .66);
    transform: translateY(-2px);
}

.magnum-lot[hidden] {
    display: none !important;
}

.magnum-lot__plan {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 158px;
    padding: 18px;
    border-right: 1px solid var(--magnum-line);
    background: rgba(255, 255, 255, .05);
}

.magnum-lot__plan--clickable {
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.magnum-lot__plan--clickable:hover,
.magnum-lot__plan--clickable:focus {
    color: inherit;
    text-decoration: none;
}

.magnum-lot__plan--clickable:focus-visible {
    outline: 2px solid var(--magnum-orange);
    outline-offset: -2px;
}

.magnum-lot__plan img {
    display: block;
    width: 100%;
    height: 118px;
    object-fit: contain;
}

.magnum-lot__plan-number {
    display: grid;
    place-items: center;
    min-width: 88px;
    min-height: 88px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .27);
    color: #fff;
    font-size: 25px;
    font-weight: 700;
}

.magnum-lot__plan img + .magnum-lot__plan-number {
    position: absolute;
    left: 12px;
    bottom: 12px;
    min-width: auto;
    min-height: auto;
    padding: 5px 9px;
    border: 0;
    background: rgba(42, 39, 53, .9);
    font-size: 18px;
}

.magnum-lot__main {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 22px 28px;
}

.magnum-lot__purpose {
    margin: 0 0 16px;
    color: #fff;
    font-size: 21px;
    line-height: 1.3;
}

.magnum-lot__purpose span {
    color: var(--magnum-muted);
}

.magnum-lot__facts,
.magnum-lot__prices dl {
    margin: 0;
}

.magnum-lot__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 34px;
}

.magnum-lot__facts div,
.magnum-lot__prices dl div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.magnum-lot__facts dt,
.magnum-lot__prices dt {
    color: var(--magnum-muted);
    font-size: 17px;
    font-weight: 400;
}

.magnum-lot__facts dd,
.magnum-lot__prices dd {
    margin: 0;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    white-space: nowrap;
}

.magnum-lot__prices {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: 18px 0;
    padding: 8px 28px;
    border-left: 1px solid var(--magnum-line);
}

.magnum-lot__prices h4 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.magnum-lot__prices dl {
    display: grid;
    gap: 8px;
}

.magnum-lot__actions {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    padding: 22px 20px;
    border-left: 1px solid var(--magnum-line);
}

.magnum-lot__button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid var(--magnum-line);
    color: #fff !important;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.magnum-lot__button:hover {
    border-color: #fff;
    transform: translateY(-1px);
}

.magnum-lot__button--request {
    border-color: var(--magnum-accent);
    background: var(--magnum-accent);
}

.magnum-lot__button--request:hover {
    border-color: var(--magnum-accent-dark);
    background: var(--magnum-accent-dark);
}

.magnum-lots__empty {
    padding: 46px;
    border: 1px solid var(--magnum-line);
    background: var(--magnum-panel-deep);
    color: #fff;
    font-size: 20px;
    text-align: center;
}

.magnum-lots__empty button {
    display: block;
    margin: 12px auto 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.magnum-lot-modal.remodal {
    max-width: 680px;
    padding: 48px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 0;
    background: #343242;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
    color: #fff;
    font-family: Circe, Arial, sans-serif;
    text-align: left;
}

.magnum-lot-modal--plan.remodal {
    max-width: 980px;
}

.magnum-lot-modal .remodal-close {
    left: auto;
    right: 12px;
    color: #fff;
}

.magnum-lot-modal h2 {
    margin: 0 40px 18px 0;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
}

.magnum-lot-modal__subtitle {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .7);
    font-size: 22px;
}

.magnum-lot-modal__subtitle strong {
    color: #fff;
}

.magnum-lot-modal__plan {
    display: grid;
    place-items: center;
    min-height: 420px;
    margin-top: 28px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
}

.magnum-lot-modal__plan img {
    display: block;
    width: 100%;
    max-height: 68vh;
    object-fit: contain;
}

.magnum-lot-modal__plan-empty {
    color: rgba(255, 255, 255, .55);
    font-size: 22px;
}

.magnum-lot-modal__deal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.magnum-lot-modal__deal legend {
    width: 100%;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .65);
    font-size: 16px;
}

.magnum-lot-modal__deal label {
    margin: 0;
    cursor: pointer;
}

.magnum-lot-modal__deal input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.magnum-lot-modal__deal span {
    display: block;
    min-width: 128px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.magnum-lot-modal__deal input:checked + span {
    border-color: #d98232;
    background: #d98232;
}

.magnum-lot-modal__field {
    display: block;
    margin: 0 0 18px;
}

.magnum-lot-modal__field > span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .65);
    font-size: 16px;
}

.magnum-lot-modal__field input {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 0;
    outline: 0;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 20px;
}

.magnum-lot-modal__field input:focus {
    border-color: #d98232;
}

.magnum-lot-modal__submit {
    width: 100%;
    min-height: 56px;
    margin-top: 8px;
    padding: 12px 22px;
    border: 0;
    border-radius: 0;
    background: #d98232;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
}

@media (max-width: 1260px) {
    .magnum-lots__filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .magnum-lots__reset {
        justify-self: start;
    }

    .magnum-lot {
        grid-template-columns: 170px minmax(260px, 1fr) minmax(270px, .8fr) 190px;
    }

    .magnum-lot__main,
    .magnum-lot__prices {
        padding-left: 26px;
        padding-right: 26px;
    }
}

@media (max-width: 990px) {
    .magnum-lots {
        padding-left: 28px;
        padding-right: 28px;
    }

    .magnum-lot {
        grid-template-columns: 170px minmax(0, 1fr) 210px;
    }

    .magnum-lot__prices {
        border-right: 0;
    }

    .magnum-lot__actions {
        grid-column: 1 / -1;
        align-items: stretch;
        flex-direction: row;
        padding: 18px;
        border-top: 1px solid var(--magnum-line);
        border-left: 0;
    }

    .magnum-lot__button {
        flex: 1 1 0;
    }
}

@media (max-width: 767px) {
    .magnum-lots {
        margin-top: 48px;
        padding: 52px 18px 62px;
    }

    .magnum-lots__title {
        margin-bottom: 28px;
        font-size: 34px;
    }

    .magnum-lots__filters {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 22px 18px;
    }

    .magnum-lots__filter-head {
        align-items: center;
    }

    .magnum-lots__price-modes {
        margin-top: 0;
    }

    .magnum-lots__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .magnum-lots__toolbar select {
        width: 100%;
        min-width: 0;
    }

    .magnum-lot {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .magnum-lot__plan {
        min-height: 170px;
        padding: 16px;
    }

    .magnum-lot__plan-number {
        min-width: 94px;
        min-height: 94px;
        font-size: 25px;
    }

    .magnum-lot__main {
        padding: 22px 20px;
    }

    .magnum-lot__purpose {
        margin-bottom: 18px;
        font-size: 20px;
    }

    .magnum-lot__facts {
        display: grid;
        gap: 8px;
    }

    .magnum-lot__prices {
        grid-column: 1 / -1;
        margin: 0;
        padding: 22px 20px;
        border-top: 1px solid var(--magnum-line);
        border-left: 0;
    }

    .magnum-lot__actions {
        flex-direction: column;
    }

    .magnum-lot-modal.remodal {
        padding: 40px 22px 28px;
    }

    .magnum-lot-modal h2 {
        font-size: 30px;
    }

    .magnum-lot-modal__plan {
        min-height: 260px;
        padding: 15px;
    }
}

@media (max-width: 430px) {
    .magnum-lots__range-inputs {
        align-items: stretch;
        flex-direction: column;
    }

    .magnum-lots__range-inputs > span {
        display: none;
    }

    .magnum-lot {
        grid-template-columns: 1fr;
    }

    .magnum-lot__plan {
        border-right: 0;
        border-bottom: 1px solid var(--magnum-line);
    }

    .magnum-lot__prices,
    .magnum-lot__actions {
        grid-column: 1;
    }
}

.magnum-plans-hero-cta {
    margin-top: 48px;
}

.magnum-lots {
    scroll-margin-top: 90px;
}
