/* ============================================
   КАЛЬКУЛЯТОРЫ ТИПОГРАФИИ - СТИЛИ
   ============================================ */

.pc-calculator {
    max-width: 1000px;
    margin: 0 auto;
    background: transparent;
    padding: 0;
}

.pc-calculator h1 {
    display: none;
}

.pc-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #EBECEC;
}

.pc-section:last-child {
    border-bottom: none;
}

.pc-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pc-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.pc-option-btn {
    padding: 8px 16px;
    border: 2px solid #EBECEC;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
    text-align: center;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    outline: none;
}

.pc-option-btn:hover {
    border-color: #FF5C15;
}

.pc-option-btn.active {
    background: #FF5C15;
    color: white;
    border-color: #FF5C15;
    font-weight: 600;
}

.pc-option-btn:focus {
    outline: none;
    box-shadow: none;
}

.pc-option-btn .pc-size-info {
    display: inline;
    font-size: 13px;
    opacity: 0.8;
    margin-left: 6px;
}

.pc-quantity-control {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pc-quantity-input {
    display: flex;
    align-items: center;
    border: 2px solid #EBECEC;
    border-radius: 6px;
    overflow: hidden;
}

.pc-quantity-input button {
    width: 40px;
    height: 40px;
    border: none;
    background: #EBECEC;
    cursor: pointer;
    font-size: 18px;
    color: #FF5C15;
    transition: background 0.2s;
    outline: none;
}

.pc-quantity-input button:hover {
    background: #FF5C15;
    color: white;
}

.pc-quantity-input button:focus {
    outline: none;
    box-shadow: none;
}

.pc-quantity-input input {
    width: 100px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    outline: none;
}

.pc-quantity-input input:focus {
    outline: none;
    box-shadow: none;
}

.pc-quantity-presets {
    display: flex;
    gap: 10px;
    flex: 1;
}

.pc-quantity-presets button {
    padding: 10px 16px;
    border: 2px solid #EBECEC;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    height: 40px;
    flex: 1;
    min-width: 60px;
    outline: none;
}

.pc-quantity-presets button:hover,
.pc-quantity-presets button.active {
    border-color: #FF5C15;
    background: #FF5C15;
    color: white;
}

.pc-quantity-presets button:focus {
    outline: none;
    box-shadow: none;
}

.pc-results {
    margin-top: 30px;
    background: #EBECEC;
    border-radius: 12px;
    padding: 25px;
}

.pc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: default;
    border: 2px solid transparent;
}

.pc-result-item.best-price {
    border-color: #FF5C15;
    background: #FFF5F2;
}

.pc-result-time {
    font-weight: 600;
    color: #000;
}

.pc-result-price {
    font-size: 20px;
    font-weight: 700;
    color: #FF5C15;
}

.pc-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #FF5C15;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
}

.pc-info-block {
    background: #EBECEC;
    border-left: 4px solid #FF5C15;
    padding: 15px;
    border-radius: 0 6px 6px 0;
    margin-top: 20px;
    font-size: 13px;
    color: #000;
}

.pc-info-block a {
    color: #FF5C15;
    text-decoration: none;
    font-weight: 600;
}

.pc-info-block a:hover {
    text-decoration: underline;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 768px) {
    .pc-calculator {
        padding: 0;
    }

    .pc-options-grid {
        grid-template-columns: 1fr;
    }
    
    .pc-quantity-control {
        flex-direction: column;
        align-items: stretch;
    }

    .pc-quantity-input {
        width: auto;
        align-self: flex-start;
        margin-bottom: 10px;
    }

    .pc-option-btn {
        height: 44px;
    }

    .pc-quantity-presets {
        flex-wrap: wrap;
        gap: 8px;
        display: flex;
        width: 100%;
    }

    .pc-quantity-presets button {
        flex: 0 0 calc(25% - 6px);
        padding: 10px 4px;
        font-size: 13px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .pc-quantity-presets button {
        flex: 0 0 calc(50% - 6px);
        padding: 12px 8px;
        font-size: 14px;
    }
}
}