/* Стили для Flip-cards тарифов */

.tariff-cards-section {
    margin-top: 40px;
    width: 100%;
}

.section-title {
    text-align: center;
    color: #1f2937;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #F97316;
    border-radius: 2px;
}

.section-description {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.sizes-info {
    margin: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.size-desc {
    color: #6b7280;
    font-weight: 500;
}

.tariff-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 580px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: white;
    display: flex;
    flex-direction: column;
}

.flip-card-front {
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #f3f4f6;
    overflow-y: auto;
}

.flip-card-back {
    background: linear-gradient(145deg, #fef3c7 0%, #ffffff 100%);
    border: 2px solid #F97316;
    transform: rotateY(180deg);
    overflow-y: auto;
}

.tariff-header {
    padding: 8px 15px;
    background: white;
    color: #1f2937;
    border-bottom: 2px solid #f3f4f6;
    position: relative;
}

.tariff-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.tariff-target {
    padding: 0 15px 8px 15px;
    background: #f0fdf4;
    border-top: 1px solid #dcfce7;
}

.tariff-target h4 {
    margin: 0 0 8px 0;
    color: #166534;
    font-size: 16px;
    font-weight: 600;
}

.tariff-target p {
    margin: 0;
    color: #15803d;
    font-size: 14px;
    line-height: 1.5;
}

.tariff-info {
    padding: 10px 15px;
    flex-grow: 1;
}

.info-item h4 {
    margin: 0 0 6px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.info-item ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.info-item ul li {
    margin-bottom: 4px;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    padding-left: 5px;
}

.info-item ul.sub-list {
    margin-top: 8px !important;
    margin-left: 15px !important;
}

.info-item ul.sub-list li {
    font-size: 13px !important;
    color: #6b7280 !important;
    margin-bottom: 6px !important;
}

.tariff-pricing {
    padding: 10px 15px;
    background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 100%);
    border-top: 1px solid #fbbf24;
    border-bottom: 1px solid #fbbf24;
}

.pricing-header h4 {
    margin: 0 0 10px 0;
    color: #92400e;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.price-start {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.from-text {
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
}

.price-main {
    font-size: 24px;
    font-weight: 700;
    color: #F97316;
}

.flip-hint {
    padding: 15px 20px;
    background: #f3f4f6;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    border-top: 1px solid #e5e7eb;
}

.flip-hint-back {
    padding: 15px 20px;
    background: #fef3c7;
    text-align: center;
    font-size: 13px;
    color: #F97316;
    font-weight: 500;
    border-top: 1px solid #F97316;
}

.flip-card-back h3 {
    margin: 0;
    padding: 15px 20px;
    background: white;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #f3f4f6;
}

.contact-form {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    justify-content: center;
}

.contact-form .contact-text {
    text-align: center;
    color: #374151;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

.phone-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.phone-input {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.phone-input:focus {
    border-color: #F97316;
    background: white;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.phone-input::placeholder {
    color: #9ca3af;
}

.submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #EA580C 0%, #DC2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.success-message {
    text-align: center;
    color: #059669;
    font-size: 14px;
    font-weight: 600;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #dcfce7;
    display: none;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Мобильные стили для тарифных карточек */
@media (max-width: 768px) {
    .tariff-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px 0;
    }

    .flip-card {
        height: 650px;
        min-height: 600px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .section-description {
        padding: 10px 15px;
        margin-bottom: 20px;
    }

    .sizes-info {
        font-size: 13px;
    }

    .tariff-header {
        padding: 6px 10px;
        flex-shrink: 0;
    }

    .tariff-header h3 {
        font-size: 16px;
    }

    .tariff-target {
        padding: 0 10px 6px 10px;
    }

    .tariff-target h4 {
        font-size: 14px;
    }

    .tariff-target p {
        font-size: 13px;
    }

    .tariff-info {
        padding: 10px 15px;
    }

    .info-item h4 {
        font-size: 14px;
    }

    .info-item ul li {
        font-size: 12px;
    }

    .sub-list li {
        font-size: 11px;
    }

    .tariff-pricing {
        padding: 10px 15px;
    }

    .price-start {
        font-size: 14px;
    }

    .price-main {
        font-size: 18px;
    }

    .flip-hint, .flip-hint-back {
        font-size: 14px;
    }

    .contact-form {
        padding: 10px;
    }

    .contact-form .contact-text {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .phone-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .success-message {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .tariff-cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .flip-card {
        height: 600px;
        min-height: 550px;
    }
}