/* ===== ÐžÐ¡ÐÐžÐ’ÐÐ«Ð• Ð¡Ð¢Ð˜Ð›Ð˜ ===== */
.trade-in-page {
    font-family: 'Arial', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== Ð›ÐžÐÐ”Ð•Ð  ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.golden-loader {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #eebc70;
    border-right: 4px solid #eebc70;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #333;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== POPUP Ð¡Ð¢Ð˜Ð›Ð˜ ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-container {
    background: white;
    border-radius: 20px;
    width: 97%;
    max-width: 600px;
    max-height: 100vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s ease;
    animation: popupAppear 0.3s ease forwards;
}

@keyframes popupAppear {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.popup-header {
    background: linear-gradient(135deg, #eebc70 0%, #e0a64a 100%);
    color: white;
    padding: 1.8rem 1.5rem;
    position: relative;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.popup-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
}

.popup-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-body {
    padding: 2rem;
}

.calc-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #f0f0f0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding: 0.3rem 0;
    border-bottom: 1px dashed #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: #666;
    font-size: 1rem;
}

.summary-value {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
}

.summary-total {
    border-top: 2px solid #eebc70;
    margin-top: 0.8rem;
    padding-top: 1rem;
    font-weight: 700;
    color: #eebc70;
    font-size: 1.2rem;
    border-bottom: none;
}

.summary-total .summary-label {
    color: #eebc70;
    font-weight: 600;
}

.summary-total .summary-value {
    color: #eebc70;
    font-size: 1.3rem;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
    background: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #eebc70;
    background: white;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.checkbox-input {
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #eebc70;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    line-height: 1.4;
}

.popup-btn {
    background: linear-gradient(135deg, #eebc70 0%, #e0a64a 100%);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e0a64a 0%, #d2942e 100%);
    transform: translateY(-3px);
}

.popup-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
    margin: 0;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== ÐŸÐ ÐžÐœÐž-Ð˜Ð—ÐžÐ‘Ð ÐÐ–Ð•ÐÐ˜Ð• ===== */
.promo-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
    border-radius: 15px;
}

/* ===== ÐšÐÐ›Ð¬ÐšÐ£Ð›Ð¯Ð¢ÐžÐ  ===== */
.trade-in-calculator {
    margin: 50px 0;
}

.trade-in-calculator__title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.trade-in-calculator__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #eebc70, #e0a64a);
    border-radius: 3px;
}

.trade-in-calculator__card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.trade-in-calculator__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.trade-in-calculator__icon {
    font-size: 3.5rem;
    background: #fff5e6;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.trade-in-calculator__title-main {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #333;
}

.trade-in-calculator__subtitle {
    color: #666;
    font-size: 1rem;
}

.calculator-form__group {
    margin-bottom: 25px;
}

.calculator-form__label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.calculator-form__input-wrapper {
    position: relative;
}

.calculator-form__input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 18px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.calculator-form__input:focus {
    outline: none;
    border-color: #eebc70;
}

.calculator-form__unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-weight: 600;
}

.fineness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.fineness-option {
    padding: 15px 10px;
    border: 2px solid #eee;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.fineness-option:hover {
    border-color: #eebc70;
    transform: translateY(-3px);
}

.fineness-option--active {
    border-color: #eebc70;
    background: linear-gradient(135deg, #fffaf0, #fff5e6);
}

.fineness-option__value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.fineness-option__price {
    font-size: 13px;
    color: #eebc70;
    font-weight: 600;
}

.calculator-result {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    border-radius: 15px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.calculator-result__label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calculator-result__value {
    font-size: 48px;
    font-weight: bold;
    color: #eebc70;
    margin-bottom: 10px;
}

.calculator-result__note {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    line-height: 1.5;
}

.trade-in-btn {
    background: linear-gradient(135deg, #eebc70 0%, #e0a64a 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trade-in-btn:hover {
    background: linear-gradient(135deg, #e0a64a 0%, #d2942e 100%);
    transform: translateY(-3px);
}

.trade-in-btn--primary {
    background: linear-gradient(135deg, #4a90e2 0%, #3570b2 100%);
}

.trade-in-btn--primary:hover {
    background: linear-gradient(135deg, #3570b2 0%, #2a5a8c 100%);
}

.mt-3 {
    margin-top: 15px;
}

/* ===== ÐŸÐ ÐžÐ¦Ð•Ð¡Ð¡ Ð ÐÐ‘ÐžÐ¢Ð« ===== */
.trade-in-process {
    margin: 60px 0;
}

.trade-in-process__title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.trade-in-process__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #eebc70, #e0a64a);
    border-radius: 3px;
}

.trade-in-process__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 992px) {
    .trade-in-process__steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .trade-in-process__steps {
        grid-template-columns: 1fr;
    }
}

.process-step {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: #eebc70;
}

.process-step__number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #eebc70, #e0a64a);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.process-step__title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.process-step__description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ===== ÐšÐÐ Ð¢Ð Ð˜ ÐœÐÐ“ÐÐ—Ð˜ÐÐ« ===== */
.map-section {
    margin: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #eebc70, #e0a64a);
    border-radius: 3px;
}

.map-container {
    display: flex;
    gap: 25px;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .map-container {
        flex-direction: column;
    }
    .stores-sidebar {
        width: 100% !important;
    }
}

.stores-sidebar {
    width: 40%;
    min-width: 350px;
}

#map {
    flex: 1;
    height: 550px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stores-search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 20px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.stores-search-input:focus {
    outline: none;
    border-color: #eebc70;
}

.stores-by-city {
    height: 450px;
    overflow-y: auto;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    background: #fff;
}

.city-group {
    border-bottom: 1px solid #f0f0f0;
}

.city-header {
    padding: 15px 20px;
    background: #f9f9f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s;
}

.city-header:hover {
    background: #fff5e6;
}

.city-name {
    flex: 1;
    font-size: 16px;
}

.city-count {
    font-size: 12px;
    color: #eebc70;
    background: #fff5e6;
    padding: 2px 8px;
    border-radius: 20px;
}

.city-stores {
    display: block;
}

.city-header.collapsed + .city-stores {
    display: none;
}

.store-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
}

.store-item:last-child {
    border-bottom: none;
}

.store-item:hover {
    background-color: #fffaf0;
}

.store-item.active {
    background: linear-gradient(135deg, #fff5e6, #fffaf0);
    border-left: 4px solid #eebc70;
}

.store-item-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-item-icon {
    color: #eebc70;
}

.store-item-address, .store-item-hours, .store-item-phone {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 10px;
}

.store-item-phone {
    color: #eebc70;
    font-weight: 600;
}

/* ===== FAQ ===== */
.faq-section {
    margin: 60px 0;
}

.faq-container {
    max-width: 800px;
    margin: 30px auto 0;
}

.faq-item {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    background: white;
}

.faq-item:hover {
    border-color: #eebc70;
}

.faq-question {
    padding: 18px 25px;
    background: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #fff5e6;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    font-size: 1.8rem;
    color: #eebc70;
    transition: transform 0.3s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 25px;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 25px;
}

.faq-answer p {
    /* margin: 0; */
    /* color: #666; */
    /* line-height: 1.7; */
}

/* ===== ÐŸÐ ÐžÐœÐž-Ð‘Ð›ÐžÐš ===== */
.trade-in-promo {
    position: relative;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border-radius: 20px;
    margin-bottom: 50px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.trade-in-promo__title {
    font-size: 3rem;
    font-weight: 300;
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .trade-in-promo__title {
        font-size: 2rem;
    }
}

.trade-in-promo__title--accent {
    font-weight: 700;
    color: #eebc70;
}

.trade-in-promo__divider {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #eebc70, #e0a64a);
    margin: 30px 0;
    border-radius: 4px;
}

.trade-in-promo__description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #666;
    max-width: 700px;
    margin: 0;
}

/* ===== ÐÐ”ÐÐŸÐ¢Ð˜Ð’ÐÐžÐ¡Ð¢Ð¬ ===== */
@media (max-width: 768px) {
    .trade-in-page {
        padding: 15px;
    }
    .trade-in-calculator__card {
        padding: 25px;
    }
    .trade-in-calculator__title {
        font-size: 1.8rem;
    }
    .trade-in-calculator__header {
        flex-direction: column;
        text-align: center;
    }
    .calculator-result__value {
        font-size: 36px;
    }
    .popup-container {
        width: 95%;
    }
    .popup-header {
        padding: 1.5rem 1.2rem;
    }
    .popup-title {
        font-size: 1.3rem;
    }
    .popup-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .trade-in-promo {
        padding: 40px 20px;
    }
    .trade-in-promo__title {
        font-size: 1.6rem;
    }
    .fineness-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .calculator-result__value {
        font-size: 28px;
    }
    .stores-sidebar {
        min-width: auto;
    }
}

/* ===== ÐÐÐ˜ÐœÐÐ¦Ð˜Ð˜ ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');