/* ============================================================
   ╨б╤В╨╕╨╗╨╕ ╤Б╤В╤А╨░╨╜╨╕╤Ж╤Л ╨║╨░╨╗╤М╨║╤Г╨╗╤П╤В╨╛╤А╨░ ╨┤╨╛╤Б╤В╨░╨▓╨║╨╕
   ╨д╨░╨╣╨╗: css/public_delivery_cost_calculator/delivery_cost_calculator.css
   ============================================================ */

:root {
    --gold: #d4af37;
    --gold-dark: #9e791d;
    --gold-light: #f4eac1;
    --bg: #fdfdfc;
    --card-bg: #ffffff;
    --border: #e6e4df;
    --text: #262626;
    --text-muted: #6b6b6b;
    --shadow-1: 0 6px 18px rgba(212, 175, 55, 0.06);
}

body {
    background: var(--bg);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.main-content {
    height: calc(100vh - 70px);
    overflow: hidden;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.calc-card {
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #fff;
    border: 1px solid var(--border);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.calc-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    padding: 25px 30px;
    min-height: 0;
}

.page-header {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.page-header h1 {
    color: var(--text);
    font-weight: 700;
    font-size: 1.65rem;
    margin-left: 30px;
}

.btn-outline-primary {
    border-color: var(--border);
    color: #1976d2;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #1976d2;
    border-color: #1976d2;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.calc-row {
    display: flex;
    flex: 1;
    gap: 20px;
    min-height: 0;
    max-height: 100%;
}

#deliveryForm {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.map-col {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.map-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow-1);
}

.map-card:hover,
.params-col .card:hover,
.accordion-item:hover {
    transform: none;
    box-shadow: var(--shadow-1);
}

.map-card .card-header {
    background: rgba(248, 249, 250, 0.8);
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}

.map-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0;
    min-height: 0;
}

.map-card .p-2 {
    padding: 6px 10px !important;
    background: rgba(248, 249, 250, 0.5);
    border-bottom: 1px solid var(--border);
}

#address {
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

#address:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
    background: white;
}

#container {
    flex: 1;
    width: 100%;
    min-height: 0;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.params-col {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.static-tabs {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--card-bg);
    border-bottom: 2px solid var(--border);
    flex-shrink: 0;
    padding-top: 5px;
    border-radius: 12px 12px 0 0;
}

.static-tabs .nav-link {
    color: var(--text-muted);
    background-color: transparent;
    border: none;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.static-tabs .nav-link:hover {
    color: var(--gold-dark);
}

.static-tabs .nav-link.active {
    color: var(--gold-dark);
    font-weight: 700;
    background-color: transparent;
    border: none;
}

.static-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    border-radius: 3px 3px 0 0;
}

.tab-content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 15px;
    min-height: 0;
}

.params-col .card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: var(--shadow-1);

    min-height: 0;
    overflow: hidden;
}

.params-col .card-header {
    background: rgba(248, 249, 250, 0.7);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.params-col .card-body {
    padding: 15px;

    min-height: 0;
    overflow-y: auto;
}

.scrollable-checkboxes {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    min-height: 0;
}

.scrollable-checkboxes::-webkit-scrollbar {
    width: 4px;
}

.scrollable-checkboxes::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

.scrollable-checkboxes::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.form-check {
    padding-left: 1.8rem;
    margin-bottom: 0.4rem;
}

.form-check-input:checked {
    background-color: var(--gold);
    border-color: var(--gold);
}

.form-check-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.accordion-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--card-bg);
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 12px 15px;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.accordion-button:not(.collapsed) {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-dark);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.1);
}

.form-control-sm,
.form-select {
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-control-sm:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
    background: white;
}

#searchButton {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
    font-weight: 700;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    width: 100%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

#searchButton:hover {
    background: linear-gradient(135deg, #8b6915, var(--gold-dark));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

#searchButton:disabled {
    background: linear-gradient(135deg, #999, #666);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.bg-light.rounded {
    background: #f8f9fa !important;
    border: 1px solid var(--border);
    border-radius: 12px !important;
}

.badge.bg-primary {
    background: var(--gold) !important;
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 15px;
}

.progress-bar.bg-success {
    background: linear-gradient(90deg, #4caf50, #66bb6a) !important;
}

.progress-bar.bg-danger {
    background: linear-gradient(90deg, #c62828, #e53935) !important;
}

.badge-premium {
    background: var(--gold);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-outline {
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
}

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
    border-radius: 16px 16px 0 0;
    padding: 20px 25px;
}

.modal-title {
    font-weight: 700;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 30px;
}

.modal-icon-btn {
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.modal-icon-btn:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.modal-icon-btn i,
.modal-icon-btn img {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

/* ============================================================
   ╨Ь╨Х╨Ф╨Ш╨Р-╨Ч╨Р╨Я╨а╨Ю╨б╨л (╨Ю╨С╨й╨Ш╨Х)
   ============================================================ */
@media (max-width: 992px) {
    .main-content { height: auto; overflow: visible; padding: 15px; }
    .calc-card { overflow: visible; flex: none; }
    .calc-card .card-body { flex: none; overflow: visible; height: auto; padding: 15px; }
    #deliveryForm { flex: none; }
    .calc-row { flex-direction: column; gap: 15px; flex: none; min-height: 0; max-height: none; }
    .map-col { min-width: 100%; flex: none; height: 50vh; min-height: 350px; max-height: 600px; display: flex; flex-direction: column; }
    .map-card { flex: 1; }
    .map-card .card-body { flex: 1; display: flex; flex-direction: column; }
    #container { flex: 1; }
    .params-col { min-width: 100%; flex: none; max-height: none; overflow: visible; }
    .tab-content-wrapper { flex: none; max-height: none; overflow-y: visible; }
    .map-card .card-header { padding: 8px 12px; font-size: 0.85rem; line-height: 1.2; }
    .map-card .p-2 { padding: 5px 8px !important; }
    .page-header { margin-bottom: 15px; }
    .page-header h1 { font-size: 1.5rem; margin-left: 0; }
    .accordion-button { padding: 10px 14px; font-size: 0.9rem; }
    .accordion-body { padding: 10px; }
}

@media (min-width: 768px) and (max-width: 992px) {
    .map-col { min-height: 300px; }
}

@media (max-width: 576px) {
    .main-content { padding: 10px; height: auto; overflow: visible; }
    .calc-card .card-body { padding: 10px; }
    .calc-row { gap: 10px; }
    .map-col { height: 55vh; min-height: 250px; }
    .form-control-sm { font-size: 0.85rem; padding: 0.375rem 0.5rem; }
    .form-check { padding-left: 1.5rem; margin-bottom: 0.3rem; }
    .static-tabs .nav-link { padding: 8px 12px; font-size: 0.85rem; }
    #searchButton { padding: 12px 15px; font-size: 1rem; }
    .card-header { padding: 10px 12px; font-size: 0.85rem; }
    .card-body { padding: 10px; }
    .page-header h1 { font-size: 1.3rem; }
    .tab-content-wrapper { max-height: none !important; overflow: visible !important; }
}

@media (min-width: 993px) {
    .calc-row { flex: 1; max-height: 100%; }
    .params-col { max-height: 100%; overflow: hidden; }
    .tab-content-wrapper { overflow-y: auto; max-height: none; }
}

/* ============================================================
   ╨Ш╨б╨Я╨а╨Р╨Т╨Ы╨Х╨Э╨Ш╨Х ╨Ф╨Ы╨п ╨Ъ╨Р╨а╨в╨Ю╨з╨Х╨Ъ ╨б ╨з╨Х╨Ъ╨С╨Ю╨Ъ╨б╨Р╨Ь╨Ш ╨Э╨Р ╨Ь╨Р╨Ы╨Х╨Э╨м╨Ъ╨Ш╨е ╨н╨Ъ╨а╨Р╨Э╨Р╨е
   ============================================================ */

/* ╨С╨░╨╖╨╛╨▓╤Л╨╡ ╤Б╤В╨╕╨╗╨╕ ╨┤╨╗╤П ╤Б╨║╤А╨╛╨╗╨╗╨░ ╤З╨╡╨║╨▒╨╛╨║╤Б╨╛╨▓ тАФ ╨┤╨╗╤П ╨▓╤Б╨╡╤Е ╤Н╨║╤А╨░╨╜╨╛╨▓ */
.scrollable-checkboxes {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

/* ╨Ф╨╗╤П ╨╝╨░╨╗╨╡╨╜╤М╨║╨╕╤Е ╤Н╨║╤А╨░╨╜╨╛╨▓ тАФ ╤Г╨╝╨╡╨╜╤М╤И╨░╨╡╨╝ ╨╝╨░╨║╤Б╨╕╨╝╨░╨╗╤М╨╜╤Г╤О ╨▓╤Л╤Б╨╛╤В╤Г ╨╕ ╨┤╨╡╨╗╨░╨╡╨╝ ╨╡╤С ╨▒╨╛╨╗╨╡╨╡ ╨╢╤С╤Б╤В╨║╨╛╨╣ */
@media (max-width: 768px) {
    /* ╨г╨╝╨╡╨╜╤М╤И╨░╨╡╨╝ ╨▓╤Л╤Б╨╛╤В╤Г ╨┤╨╗╤П ╨▓╤Б╨╡╤Е ╤Б╨║╤А╨╛╨╗╨╗╤П╤Й╨╕╤Е╤Б╤П ╨║╨╛╨╜╤В╨╡╨╣╨╜╨╡╤А╨╛╨▓ ╤Б ╤З╨╡╨║╨▒╨╛╨║╤Б╨░╨╝╨╕ */
    .scrollable-checkboxes {
        max-height: 140px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch; /* ╨Я╨╗╨░╨▓╨╜╤Л╨╣ ╤Б╨║╤А╨╛╨╗╨╗ ╨╜╨░ iOS */
    }

    /* ╨Ф╨╛╨┐╨╛╨╗╨╜╨╕╤В╨╡╨╗╤М╨╜╨╛ ╨╛╨│╤А╨░╨╜╨╕╤З╨╕╨▓╨░╨╡╨╝ ╨║╨░╤А╤В╨╛╤З╨║╨╕ ╤Ж╨╡╨╗╨╕╨║╨╛╨╝ */
    .params-col .card {
        max-height: none; /* ╨б╨▒╤А╨░╤Б╤Л╨▓╨░╨╡╨╝, ╤З╤В╨╛╨▒╤Л ╨╜╨╡ ╨╝╨╡╤И╨░╤В╤М */
    }

    .params-col .card-body {
        padding: 10px;
    }

    /* ╨д╨╕╨║╤Б ╨┤╨╗╤П ╨║╨░╤А╤В╨╛╤З╨╡╨║, ╨║╨╛╤В╨╛╤А╤Л╨╡ ╨╜╨╡ ╤Г╨┤╨╡╤А╨╢╨╕╨▓╨░╤О╤В ╨║╨╛╨╜╤В╨╡╨╜╤В */
    .params-col .card.h-100 {
        height: auto !important;
        max-height: 100%;
    }
}

/* ╨Ф╨╗╤П ╨╛╤З╨╡╨╜╤М ╨╝╨░╨╗╨╡╨╜╤М╨║╨╕╤Е ╤Н╨║╤А╨░╨╜╨╛╨▓ (╤В╨╡╨╗╨╡╤Д╨╛╨╜╤Л) */
@media (max-width: 576px) {
    .scrollable-checkboxes {
        max-height: 120px !important;
    }
}

/* ╨Я╤А╨╕╨╜╤Г╨┤╨╕╤В╨╡╨╗╤М╨╜╤Л╨╣ ╤Б╨║╤А╨╛╨╗╨╗ ╨┤╨╗╤П ╨▓╤Б╨╡╤Е ╨║╨░╤А╤В╨╛╤З╨╡╨║ ╤Б ╤З╨╡╨║╨▒╨╛╨║╤Б╨░╨╝╨╕ ╨╜╨░ ╨╝╨╛╨▒╨╕╨╗╤М╨╜╤Л╤Е */
@media (max-width: 992px) {
    /* ╨Т╤Б╨╡ ╨║╨░╤А╤В╨╛╤З╨║╨╕ ╨╜╨░ ╨┐╤А╨░╨▓╨╛╨╣ ╨┐╨░╨╜╨╡╨╗╨╕ ╨┤╨╛╨╗╨╢╨╜╤Л ╨╕╨╝╨╡╤В╤М ╨╜╨╛╤А╨╝╨░╨╗╤М╨╜╨╛╨╡ ╨┐╨╛╨▓╨╡╨┤╨╡╨╜╨╕╨╡ */
    .params-col .card {
        overflow: visible;
    }

    /* ╨Э╨╛ ╤Б╨║╤А╨╛╨╗╨╗╤П╤Й╨╕╨╡╤Б╤П ╨▒╨╗╨╛╨║╨╕ ╨┤╨╛╨╗╨╢╨╜╤Л ╤А╨░╨▒╨╛╤В╨░╤В╤М */
    .scrollable-checkboxes {
        max-height: 160px;
        overflow-y: auto;
    }
}

/* ╨д╨╕╨║╤Б ╨┤╨╗╤П ╨▓╨║╨╗╨░╨┤╨╛╨║ ╨╜╨░ ╨╝╨╛╨▒╨╕╨╗╤М╨╜╤Л╤Е тАФ ╨║╨╛╨╜╤В╨╡╨╜╤В ╨╜╨╡ ╨┤╨╛╨╗╨╢╨╡╨╜ ╨▓╤Л╨╗╨╡╨╖╨░╤В╤М */
@media (max-width: 768px) {
    .tab-content {
        overflow-x: hidden;
    }

    /* ╨з╤В╨╛╨▒╤Л ╤З╨╡╨║╨▒╨╛╨║╤Б╤Л ╨╜╨╡ ╤Г╤Е╨╛╨┤╨╕╨╗╨╕ ╨╖╨░ ╨┐╤А╨╡╨┤╨╡╨╗╤Л */
    .form-check {
        word-break: break-word;
        white-space: normal;
    }

    .form-check-label {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

/* ============================================================
   ╨Я╨а╨Ю╨У╨а╨Х╨б╨б-╨С╨Р╨а ╨Ш ╨б╨Ы╨Ю╨в-╨Ь╨Р╨и╨Ш╨Э╨Р (3 ╨б╨Ы╨Ю╨в╨Р)
   ============================================================ */
#progressOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 253, 252, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9998;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    overflow: hidden;
}

#progressBarContainer {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.progress-outer-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--gold-dark);
    border-right-color: var(--gold);
    animation: ring-spin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.progress-inner-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: -0.5px;
    z-index: 10;
}

.progress-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    flex-shrink: 0;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.quarry-slot-machine {
    position: relative;
    width: 520px;
    max-width: 95vw;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03), rgba(212, 175, 55, 0.06));
    border-radius: 20px;
    border: 2px solid rgba(212, 175, 55, 0.15);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.03), 0 4px 20px rgba(212, 175, 55, 0.1);
}

.quarry-names-strip {
    position: relative;
    width: 100%;
    height: 100%;
}

.quarry-slot-name {
    position: absolute;
    width: 100%;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 30px;
    left: 0;
    right: 0;
    transition: top 0.4s cubic-bezier(0.33, 1, 0.68, 1),
                opacity 0.4s ease,
                font-size 0.4s ease,
                color 0.4s ease,
                text-shadow 0.4s ease;
}

.quarry-slot-name.pos-1 {
    top: 15%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0.35;
    z-index: 1;
}

.quarry-slot-name.pos-0 {
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-dark);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 1;
    z-index: 5;
}

.quarry-slot-name.pos--1 {
    top: 85%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0.35;
    z-index: 1;
}

/* ╨б╨┤╨▓╨╕╨│ ╨Т╨Э╨Ш╨Ч тАФ ╨╜╨╛╨▓╤Л╨╣ ╨╖╨░╤Е╨╛╨┤╨╕╤В ╨б╨Т╨Х╨а╨е╨г */
.quarry-names-strip.scroll-down .pos-1 {
    top: 50%;
    opacity: 1;
    font-size: 1.6rem;
    color: var(--gold-dark);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.quarry-names-strip.scroll-down .pos-0 {
    top: 85%;
    opacity: 0.35;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-shadow: none;
    z-index: 1;
}

.quarry-names-strip.scroll-down .pos--1 {
    top: 110%;
    opacity: 0;
    font-size: 0.75rem;
}

/* ╨Ь╨│╨╜╨╛╨▓╨╡╨╜╨╜╤Л╨╣ ╤Б╨▒╤А╨╛╤Б ╨Т╨Т╨Х╨а╨е */
.quarry-names-strip.reset-top .quarry-slot-name {
    transition: none !important;
}

.quarry-names-strip.reset-top .pos-1 {
    top: -10%;
    opacity: 0;
    font-size: 0.75rem;
}

.quarry-names-strip.reset-top .pos-0 {
    top: 15%;
    opacity: 0.35;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-shadow: none;
    z-index: 1;
}

.quarry-names-strip.reset-top .pos--1 {
    top: 50%;
    opacity: 1;
    font-size: 1.6rem;
    color: var(--gold-dark);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

/* ╨Я╨╗╨░╨▓╨╜╤Л╨╣ ╨▓╨╛╨╖╨▓╤А╨░╤В */
.quarry-names-strip.snap-back .quarry-slot-name {
    transition: top 0.35s cubic-bezier(0.33, 1, 0.68, 1),
                opacity 0.35s ease,
                font-size 0.35s ease,
                color 0.35s ease,
                text-shadow 0.35s ease;
}

.quarry-slot-distance {
    position: absolute;
    top: calc(50% + 40px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--gold-dark);
    z-index: 6;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 18px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.quarry-slot-distance.fade-out { opacity: 0; transform: translateX(-50%) translateY(-10px); }
.quarry-slot-distance.fade-in { opacity: 1; transform: translateX(-50%) translateY(0); }

.quarry-slot-icon { display: inline-block; margin-right: 8px; font-size: 0.9em; }

.quarry-slot-machine::before {
    content: '';
    position: absolute; left: 0; right: 0; top: 0; height: 60px; z-index: 10;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(253, 253, 252, 0.97) 0%, rgba(253, 253, 252, 0.5) 50%, transparent 100%);
}

.quarry-slot-machine::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 60px; z-index: 10;
    pointer-events: none;
    background: linear-gradient(to top, rgba(253, 253, 252, 0.97) 0%, rgba(253, 253, 252, 0.5) 50%, transparent 100%);
}

.quarry-slot-machine-lines {
    position: absolute; top: 50%; left: 8%; right: 8%; height: 1px; z-index: 4;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15) 30%, rgba(212, 175, 55, 0.25) 50%, rgba(212, 175, 55, 0.15) 70%, transparent);
}

@keyframes ring-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
    .quarry-slot-machine { width: 95vw; height: 180px; }
    .quarry-slot-name.pos-1 { font-size: 0.75rem; }
    .quarry-slot-name.pos-0 { font-size: 1.3rem; }
    .quarry-slot-name.pos--1 { font-size: 0.75rem; }
    .quarry-slot-distance { font-size: 0.8rem; padding: 4px 14px; top: calc(50% + 35px); }
}

@media (max-width: 422px) {
  .navbar {
    min-height: 85px;
  }

  body {
    padding-top: 85px;
  }
}
