/* General styles */
.site-logo {
    height: 40px;
    width: auto;
}

/* Социальные иконки */
.social-icon {
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Фиксированный блок цены */
.price-summary {
    transition: all 0.3s ease;
}

.price-summary.fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 40;
    padding: 1rem;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Анимация обновления цены */
@keyframes priceUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.price-update {
    animation: priceUpdate 0.3s ease-out;
}

/* Стили для тарифных планов */
.tariff-card {
    transition: all 0.2s ease;
}

.tariff-card:hover {
    transform: translateY(-2px);
}

.tariff-card.selected {
    border-color: #3B82F6;
    background-color: #EBF8FF;
}

/* Табы с этапами работ */
.work-stages-tab {
    transition: all 0.2s ease;
}

.work-stages-tab.active {
    background-color: #EBF8FF;
    border-bottom: 2px solid #3B82F6;
    color: #1E40AF;
}

/* Checkbox styles */
.custom-checkbox {
    position: relative;
    padding-left: 2rem;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 1.5rem;
    width: 1.5rem;
    background-color: white;
    border: 2px solid #E5E7EB;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.custom-checkbox:hover .checkmark {
    border-color: #3B82F6;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #3B82F6;
    border-color: #3B82F6;
}

.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 0.5rem;
    top: 0.25rem;
    width: 0.375rem;
    height: 0.75rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Мобильные стили */
@media (max-width: 768px) {
    .site-logo {
        height: 32px;
    }

    .price-summary.fixed {
        padding: 0.75rem;
    }

    .work-stages-tab {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

/* Стили для табов на мобильных устройствах */
@media (max-width: 768px) {
    .tabs-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .tabs-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .tabs-container {
        display: flex;
        min-width: min-content;
    }
    
    .tab-button {
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    #aboutUsPopup {
        padding: 0;
    }
    
    #aboutUsPopup .max-w-4xl {
        margin: 0;
        min-height: 100vh;
        border-radius: 0;
    }
    
    #aboutUsPopup .p-8 {
        padding: 1rem;
        padding-top: 3rem;
    }
}
/* В секцию style или в ваш CSS файл */
.popup-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.popup-dialog {
    background: white;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 56rem;
    margin: 2rem auto;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.popup-content {
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .popup-overlay {
        padding: 0;
    }

    .popup-dialog {
        margin: 0;
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
    }

    .popup-close {
        position: fixed;
        top: 1rem !important;
        right: 1rem !important;
        z-index: 60;
    }

    .popup-content {
        padding-top: 3rem;
    }
}

/* Унификация размеров иконок */
.stage-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Стили для тултипов */
.tippy-box {
    background-color: white;
    color: #1F2937;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 0.75rem;
    font-size: 0.875rem;
    max-width: 300px !important;
}

.tippy-arrow {
    color: white;
}

.tippy-box[data-placement^='top'] > .tippy-arrow::before {
    border-top-color: white;
}

/* Перетаскиваемый блок с ценой */
.draggable {
    touch-action: none;
    user-select: none;
}

.price-block-hidden {
    transform: translateY(100%);
    pointer-events: none;
}

/* Анимация аватара */
.avatar-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-price {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    #floatingPriceBlock {
        top: auto;
        bottom: 20px;
        right: 20px;
        width: auto;
        max-width: 200px;
    }
}